mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 15:25:45 +00:00
63 lines
1.2 KiB
C
63 lines
1.2 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 "ClockMeter.h"
|
|
#include "HostnameMeter.h"
|
|
#include "UptimeMeter.h"
|
|
|
|
/*{
|
|
#include "Action.h"
|
|
#include "BatteryMeter.h"
|
|
#include "UnsupportedProcess.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;
|
|
}
|
|
|
|
int Platform_getMaxPid() {
|
|
return -1;
|
|
}
|
|
|