summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-27 19:41:14 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-27 19:41:14 -0200
commitca03094bb2d60c6ee1558bd2bcfb9038244b38cb (patch)
treec2cecf055fb8c769b2e3c96f4153dc1a57a9e39d /unsupported
parent2dcdd87658cdc38b2df5535cce85976e963fbd30 (diff)
Make UptimeMeter cross-platform again.
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c5
-rw-r--r--unsupported/Platform.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 5e568025..8d4b3a0d 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -14,6 +14,7 @@ in the source distribution for its full text.
#include "BatteryMeter.h"
#include "ClockMeter.h"
#include "HostnameMeter.h"
+#include "UptimeMeter.h"
/*{
#include "Action.h"
@@ -33,6 +34,7 @@ MeterClass* Platform_meterTypes[] = {
&TasksMeter_class,
&BatteryMeter_class,
&HostnameMeter_class,
+ &UptimeMeter_class,
&AllCPUsMeter_class,
&AllCPUs2Meter_class,
&LeftCPUsMeter_class,
@@ -43,3 +45,6 @@ MeterClass* Platform_meterTypes[] = {
NULL
};
+int Platform_getUptime() {
+ return -1;
+}
diff --git a/unsupported/Platform.h b/unsupported/Platform.h
index 1a2b81f0..026c45fb 100644
--- a/unsupported/Platform.h
+++ b/unsupported/Platform.h
@@ -15,5 +15,6 @@ void Platform_setBindings(Htop_Action* keys);
extern MeterClass* Platform_meterTypes[];
+int Platform_getUptime();
#endif

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