mirror of https://github.com/xzeldon/htop.git
57 lines
1.1 KiB
C
57 lines
1.1 KiB
C
/*
|
|
htop - unsupported/Platform.c
|
|
(C) 2014 Hisham H. Muhammad
|
|
Released under the GNU GPL, see the COPYING file
|
|
in the source distribution for its full text.
|
|
*/
|
|
|
|
#include "Platform.h"
|
|
#include "CPUMeter.h"
|
|
#include "MemoryMeter.h"
|
|
#include "SwapMeter.h"
|
|
#include "TasksMeter.h"
|
|
#include "LoadAverageMeter.h"
|
|
#include "BatteryMeter.h"
|
|
#include "ClockMeter.h"
|
|
#include "HostnameMeter.h"
|
|
#include "UptimeMeter.h"
|
|
|
|
/*{
|
|
#include "Action.h"
|
|
}*/
|
|
|
|
void Platform_setBindings(Htop_Action* keys) {
|
|
(void) keys;
|
|
}
|
|
|
|
MeterClass* Platform_meterTypes[] = {
|
|
&CPUMeter_class,
|
|
&ClockMeter_class,
|
|
&LoadAverageMeter_class,
|
|
&LoadMeter_class,
|
|
&MemoryMeter_class,
|
|
&SwapMeter_class,
|
|
&TasksMeter_class,
|
|
&BatteryMeter_class,
|
|
&HostnameMeter_class,
|
|
&UptimeMeter_class,
|
|
&AllCPUsMeter_class,
|
|
&AllCPUs2Meter_class,
|
|
&LeftCPUsMeter_class,
|
|
&RightCPUsMeter_class,
|
|
&LeftCPUs2Meter_class,
|
|
&RightCPUs2Meter_class,
|
|
&BlankMeter_class,
|
|
NULL
|
|
};
|
|
|
|
int Platform_getUptime() {
|
|
return -1;
|
|
}
|
|
|
|
void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
|
|
*one = 0;
|
|
*five = 0;
|
|
*fifteen = 0;
|
|
}
|