add reporting of changes since last request
This commit is contained in:
@@ -77,6 +77,8 @@ public:
|
||||
uid = 0;
|
||||
sent_by_closed_bytes = 0;
|
||||
rcvd_by_closed_bytes = 0;
|
||||
sent_last_reported = 0;
|
||||
rcvd_last_reported = 0;
|
||||
}
|
||||
void check() { assert(pid >= 0); }
|
||||
|
||||
@@ -95,6 +97,7 @@ public:
|
||||
void gettotalmb(float *recvd, float *sent);
|
||||
void gettotalkb(float *recvd, float *sent);
|
||||
void gettotalb(float *recvd, float *sent);
|
||||
void getlast(u_int64_t *recvd, u_int64_t *sent);
|
||||
|
||||
char *name;
|
||||
char *cmdline;
|
||||
@@ -103,6 +106,9 @@ public:
|
||||
u_int64_t sent_by_closed_bytes;
|
||||
u_int64_t rcvd_by_closed_bytes;
|
||||
|
||||
u_int64_t sent_last_reported;
|
||||
u_int64_t rcvd_last_reported;
|
||||
|
||||
ConnList connections;
|
||||
uid_t getUid() { return uid; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user