diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-10-09 14:57:01 -0400 |
---|---|---|
committer | Michael McConville <mmcconville@mykolab.com> | 2015-10-09 14:57:01 -0400 |
commit | 9f1884c28f5a115aa2c96c922b34403fec8835cb (patch) | |
tree | 34d1c9129d5a788f97c5724671583368de115fcd /openbsd | |
parent | c4eb99f2643e7dcdf6b4fc5f1109a30d8d948634 (diff) |
Fix generation of openbsd/Platform.h and replace a vestigial dummy CPU utilization value
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/Platform.c | 3 | ||||
-rw-r--r-- | openbsd/Platform.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c index 25d53cc3..1bfdd4ca 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -38,6 +38,7 @@ in the source distribution for its full text. /*{ #include "Action.h" #include "BatteryMeter.h" +#include "SignalsPanel.h" extern ProcessFieldData Process_fields[]; @@ -231,7 +232,7 @@ double Platform_setCPUValues(Meter* this, int cpu) { if (perc <= 100. && perc >= 0.) { return perc; } else { - return 12.34; + return 0.; } } diff --git a/openbsd/Platform.h b/openbsd/Platform.h index 971c7bf5..63c7dda2 100644 --- a/openbsd/Platform.h +++ b/openbsd/Platform.h @@ -36,6 +36,9 @@ extern ProcessField Platform_defaultFields[]; extern int Platform_numberOfFields; +/* + * See /usr/include/sys/signal.h + */ extern SignalItem Platform_signals[]; extern unsigned int Platform_numberOfSignals; |