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

@@ -50,8 +50,8 @@ class NethogsMonitorRecord(ctypes.Structure):
('pid', ctypes.c_int),
('uid', ctypes.c_uint32),
('device_name', ctypes.c_char_p),
('sent_bytes', ctypes.c_uint32),
('recv_bytes', ctypes.c_uint32),
('sent_bytes', ctypes.c_uint64),
('recv_bytes', ctypes.c_uint64),
('sent_kbs', ctypes.c_float),
('recv_kbs', ctypes.c_float),
)