fixes #29 - change all sent/recv counters from int32 to int64 to prevent wraparound

This commit is contained in:
Jason Antman
2017-08-27 10:32:16 -04:00
parent e5455240c9
commit 2a2ce7c909
7 changed files with 26 additions and 26 deletions

View File

@@ -91,7 +91,7 @@ public:
}
int getLastPacket();
void gettotal(u_int32_t *recvd, u_int32_t *sent);
void gettotal(u_int64_t *recvd, u_int64_t *sent);
void getkbps(float *recvd, float *sent);
void gettotalmb(float *recvd, float *sent);
void gettotalkb(float *recvd, float *sent);
@@ -101,8 +101,8 @@ public:
char *cmdline;
const char *devicename;
int pid;
u_int32_t sent_by_closed_bytes;
u_int32_t rcvd_by_closed_bytes;
u_int64_t sent_by_closed_bytes;
u_int64_t rcvd_by_closed_bytes;
ConnList *connections;
uid_t getUid() { return uid; }