Merge pull request #137 from jantman/issues/29

fixes #29 - change all sent/recv counters from int32 to int64 to prevent wraparound
This commit is contained in:
Arnout Engelen
2017-08-27 16:54:43 +02:00
committed by GitHub
7 changed files with 26 additions and 26 deletions

View File

@@ -69,8 +69,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),
)