summaryrefslogtreecommitdiffstats
path: root/darwin
diff options
context:
space:
mode:
authorChristian Goettsche <cgzones@googlemail.com>2020-10-21 17:06:32 +0200
committercgzones <cgzones@googlemail.com>2020-10-29 22:21:42 +0100
commitc2fdfd99eb5bffee0f6d1e1838fb4708eac18425 (patch)
treeeee28e177708eb99f14c6aa6f67f818daaf69e18 /darwin
parentc91061c84bcce51934f05df7a7ee4d219f01bc71 (diff)
FreeBSD: implement Platform_getDiskIO()
Diffstat (limited to 'darwin')
-rw-r--r--darwin/Platform.c6
-rw-r--r--darwin/Platform.h5
2 files changed, 4 insertions, 7 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c
index 965da0a1..b1f9283d 100644
--- a/darwin/Platform.c
+++ b/darwin/Platform.c
@@ -311,11 +311,9 @@ char* Platform_getProcessEnv(pid_t pid) {
return 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/darwin/Platform.h b/darwin/Platform.h
index bdfe226d..471b38a9 100644
--- a/darwin/Platform.h
+++ b/darwin/Platform.h
@@ -11,6 +11,7 @@ in the source distribution for its full text.
#include "Action.h"
#include "SignalsPanel.h"
#include "CPUMeter.h"
+#include "DiskIOMeter.h"
#include "BatteryMeter.h"
#include "DarwinProcess.h"
@@ -48,9 +49,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,

© 2014-2024 Faster IT GmbH | imprint | privacy policy