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() --- unsupported/Platform.c | 6 ++---- unsupported/Platform.h | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'unsupported') diff --git a/unsupported/Platform.c b/unsupported/Platform.c index e2d7fa6b..3f8cefa6 100644 --- a/unsupported/Platform.c +++ b/unsupported/Platform.c @@ -141,10 +141,8 @@ char* Platform_getProcessEnv(pid_t pid) { return NULL; } -bool Platform_getDiskIO(unsigned long int *bytesRead, - unsigned long int *bytesWrite, - unsigned long int *msTimeSpend) { - *bytesRead = *bytesWrite = *msTimeSpend = 0; +bool Platform_getDiskIO(DiskIOData* data) { + (void)data; return false; } diff --git a/unsupported/Platform.h b/unsupported/Platform.h index 1558d66a..902b6a9b 100644 --- a/unsupported/Platform.h +++ b/unsupported/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" #include "UnsupportedProcess.h" @@ -47,9 +48,7 @@ bool Process_isThread(const Process* 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