mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-02 15:48:15 +03:00

On Linux kernels the size of the values exported for network device bytes and packets has used a 64 bit integer for quite some time (2.6+ IIRC). Make the procfs value extraction use correct types and change internal types used to rate convert these counters (within the NetworkIO Meter) 64 bit integers, where appropriate.
16 lines
387 B
C
16 lines
387 B
C
#ifndef HEADER_NetworkIOMeter
|
|
#define HEADER_NetworkIOMeter
|
|
|
|
#include "Meter.h"
|
|
|
|
typedef struct NetworkIOData_ {
|
|
unsigned long long int bytesReceived;
|
|
unsigned long long int packetsReceived;
|
|
unsigned long long int bytesTransmitted;
|
|
unsigned long long int packetsTransmitted;
|
|
} NetworkIOData;
|
|
|
|
extern const MeterClass NetworkIOMeter_class;
|
|
|
|
#endif /* HEADER_NetworkIOMeter */
|