diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-20 21:40:51 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-26 19:17:14 +0100 |
commit | f757810f489b12d2a98dcb09751003f4ed002538 (patch) | |
tree | 4558520309803981d20d8c0aa6ab100211d9bd48 /dragonflybsd/Platform.h | |
parent | 167adc0a2b4a940cae6c9eb71f3185b5d2d3b4fa (diff) |
Improve handling of no data in Disk and Network IO Meters
Diffstat (limited to 'dragonflybsd/Platform.h')
-rw-r--r-- | dragonflybsd/Platform.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index 7f31f0a5..7ea211ca 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -40,9 +40,11 @@ void Platform_setSwapValues(Meter* this); char* Platform_getProcessEnv(pid_t pid); -void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend); +bool Platform_getDiskIO(unsigned long int *bytesRead, + unsigned long int *bytesWrite, + unsigned long int *msTimeSpend); -void Platform_getNetworkIO(unsigned long int *bytesReceived, +bool Platform_getNetworkIO(unsigned long int *bytesReceived, unsigned long int *packetsReceived, unsigned long int *bytesTransmitted, unsigned long int *packetsTransmitted); |