2014-11-24 20:55:49 +00:00
|
|
|
/*
|
|
|
|
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"
|
2014-11-27 21:18:14 +00:00
|
|
|
#include "CPUMeter.h"
|
|
|
|
#include "MemoryMeter.h"
|
|
|
|
#include "SwapMeter.h"
|
|
|
|
#include "TasksMeter.h"
|
|
|
|
#include "LoadAverageMeter.h"
|
|
|
|
#include "ClockMeter.h"
|
|
|
|
#include "HostnameMeter.h"
|
2014-11-27 21:41:14 +00:00
|
|
|
#include "UptimeMeter.h"
|
2014-11-24 20:55:49 +00:00
|
|
|
|
|
|
|
/*{
|
|
|
|
#include "Action.h"
|
2014-11-27 23:02:52 +00:00
|
|
|
#include "BatteryMeter.h"
|
2015-02-23 03:59:24 +00:00
|
|
|
#include "UnsupportedProcess.h"
|
2014-11-24 20:55:49 +00:00
|
|
|
}*/
|
|
|
|
|
|
|
|
void Platform_setBindings(Htop_Action* keys) {
|
|
|
|
(void) keys;
|
|
|
|
}
|
|
|
|
|
2014-11-27 21:18:14 +00:00
|
|
|
MeterClass* Platform_meterTypes[] = {
|
|
|
|
&CPUMeter_class,
|
|
|
|
&ClockMeter_class,
|
|
|
|
&LoadAverageMeter_class,
|
|
|
|
&LoadMeter_class,
|
|
|
|
&MemoryMeter_class,
|
|
|
|
&SwapMeter_class,
|
|
|
|
&TasksMeter_class,
|
|
|
|
&BatteryMeter_class,
|
|
|
|
&HostnameMeter_class,
|
2014-11-27 21:41:14 +00:00
|
|
|
&UptimeMeter_class,
|
2014-11-27 21:18:14 +00:00
|
|
|
&AllCPUsMeter_class,
|
|
|
|
&AllCPUs2Meter_class,
|
|
|
|
&LeftCPUsMeter_class,
|
|
|
|
&RightCPUsMeter_class,
|
|
|
|
&LeftCPUs2Meter_class,
|
|
|
|
&RightCPUs2Meter_class,
|
|
|
|
&BlankMeter_class,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2014-11-27 21:41:14 +00:00
|
|
|
int Platform_getUptime() {
|
|
|
|
return -1;
|
|
|
|
}
|
2014-11-27 21:57:24 +00:00
|
|
|
|
|
|
|
void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
|
|
|
|
*one = 0;
|
|
|
|
*five = 0;
|
|
|
|
*fifteen = 0;
|
|
|
|
}
|
2014-11-27 22:10:23 +00:00
|
|
|
|
|
|
|
int Platform_getMaxPid() {
|
|
|
|
return -1;
|
|
|
|
}
|
2014-11-27 23:02:52 +00:00
|
|
|
|