diff options
author | Christian Goettsche <cgzones@googlemail.com> | 2020-10-21 17:06:32 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-29 22:21:42 +0100 |
commit | c2fdfd99eb5bffee0f6d1e1838fb4708eac18425 (patch) | |
tree | eee28e177708eb99f14c6aa6f67f818daaf69e18 /dragonflybsd | |
parent | c91061c84bcce51934f05df7a7ee4d219f01bc71 (diff) |
FreeBSD: implement Platform_getDiskIO()
Diffstat (limited to 'dragonflybsd')
-rw-r--r-- | dragonflybsd/Platform.c | 6 | ||||
-rw-r--r-- | dragonflybsd/Platform.h | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index 3eac7deb..5b81c610 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -206,11 +206,9 @@ char* Platform_getProcessEnv(pid_t pid) { return NULL; } -bool Platform_getDiskIO(unsigned long int *bytesRead, - unsigned long int *bytesWrite, - unsigned long int *msTimeSpend) { +bool Platform_getDiskIO(DiskIOData* data) { // TODO - *bytesRead = *bytesWrite = *msTimeSpend = 0; + (void)data; return false; } diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index 7ea211ca..6c884719 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -10,6 +10,7 @@ in the source distribution for its full text. #include "Action.h" #include "BatteryMeter.h" +#include "DiskIOMeter.h" #include "SignalsPanel.h" extern ProcessFieldData Process_fields[]; @@ -40,9 +41,7 @@ void Platform_setSwapValues(Meter* this); char* Platform_getProcessEnv(pid_t pid); -bool Platform_getDiskIO(unsigned long int *bytesRead, - unsigned long int *bytesWrite, - unsigned long int *msTimeSpend); +bool Platform_getDiskIO(DiskIOData* data); bool Platform_getNetworkIO(unsigned long int *bytesReceived, unsigned long int *packetsReceived, |