From ca03094bb2d60c6ee1558bd2bcfb9038244b38cb Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 27 Nov 2014 19:41:14 -0200 Subject: Make UptimeMeter cross-platform again. --- unsupported/Platform.c | 5 +++++ unsupported/Platform.h | 1 + 2 files changed, 6 insertions(+) (limited to 'unsupported') 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 -- cgit v1.2.3