Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
9f1884c2
Commit
9f1884c2
authored
Oct 09, 2015
by
Michael McConville
Browse files
Fix generation of openbsd/Platform.h and replace a vestigial dummy CPU utilization value
parent
c4eb99f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
openbsd/Platform.c
View file @
9f1884c2
...
...
@@ -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
.
;
}
}
...
...
openbsd/Platform.h
View file @
9f1884c2
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment