aboutsummaryrefslogtreecommitdiffstats
path: root/unsupported/Platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'unsupported/Platform.c')
-rw-r--r--unsupported/Platform.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 27bc560..dbfddd9 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -16,6 +16,7 @@ in the source distribution for its full text.
#include "ClockMeter.h"
#include "DateMeter.h"
#include "DateTimeMeter.h"
+#include "FileDescriptorMeter.h"
#include "HostnameMeter.h"
#include "LoadAverageMeter.h"
#include "Macros.h"
@@ -70,6 +71,7 @@ const MeterClass* const Platform_meterTypes[] = {
&RightCPUs4Meter_class,
&LeftCPUs8Meter_class,
&RightCPUs8Meter_class,
+ &FileDescriptorMeter_class,
&BlankMeter_class,
NULL
};
@@ -100,8 +102,8 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
*fifteen = 0;
}
-int Platform_getMaxPid(void) {
- return 1;
+pid_t Platform_getMaxPid(void) {
+ return INT_MAX;
}
double Platform_setCPUValues(Meter* this, unsigned int cpu) {
@@ -134,6 +136,11 @@ FileLocks_ProcessData* Platform_getProcessLocks(pid_t pid) {
return NULL;
}
+void Platform_getFileDescriptors(double* used, double* max) {
+ *used = 1337;
+ *max = 4711;
+}
+
bool Platform_getDiskIO(DiskIOData* data) {
(void)data;
return false;

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