Fix generation of openbsd/Platform.h and replace a vestigial dummy CPU utilization value

This commit is contained in:
Michael McConville 2015-10-09 14:57:01 -04:00
parent c4eb99f264
commit 9f1884c28f
2 changed files with 5 additions and 1 deletions

View File

@ -38,6 +38,7 @@ in the source distribution for its full text.
/*{ /*{
#include "Action.h" #include "Action.h"
#include "BatteryMeter.h" #include "BatteryMeter.h"
#include "SignalsPanel.h"
extern ProcessFieldData Process_fields[]; extern ProcessFieldData Process_fields[];
@ -231,7 +232,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
if (perc <= 100. && perc >= 0.) { if (perc <= 100. && perc >= 0.) {
return perc; return perc;
} else { } else {
return 12.34; return 0.;
} }
} }

View File

@ -36,6 +36,9 @@ extern ProcessField Platform_defaultFields[];
extern int Platform_numberOfFields; extern int Platform_numberOfFields;
/*
* See /usr/include/sys/signal.h
*/
extern SignalItem Platform_signals[]; extern SignalItem Platform_signals[];
extern unsigned int Platform_numberOfSignals; extern unsigned int Platform_numberOfSignals;