From c2fdfd99eb5bffee0f6d1e1838fb4708eac18425 Mon Sep 17 00:00:00 2001 From: Christian Goettsche Date: Wed, 21 Oct 2020 17:06:32 +0200 Subject: FreeBSD: implement Platform_getDiskIO() --- solaris/Platform.c | 6 ++---- solaris/Platform.h | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'solaris') diff --git a/solaris/Platform.c b/solaris/Platform.c index 2fa2e1de..87247969 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -264,11 +264,9 @@ char* Platform_getProcessEnv(pid_t pid) { return envBuilder.env; } -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/solaris/Platform.h b/solaris/Platform.h index f95515c6..8718dbfe 100644 --- a/solaris/Platform.h +++ b/solaris/Platform.h @@ -11,6 +11,7 @@ in the source distribution for its full text. #include "Action.h" #include "BatteryMeter.h" +#include "DiskIOMeter.h" #include "SignalsPanel.h" #include #include @@ -63,9 +64,7 @@ void Platform_setZfsCompressedArcValues(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, -- cgit v1.2.3