Fix platform dependent field
This commit is contained in:
parent
c1e9069aa1
commit
abba2c89ab
|
@ -45,14 +45,12 @@ struct cpu_usage {
|
|||
long system;
|
||||
long idle;
|
||||
long total;
|
||||
int spin;
|
||||
#else
|
||||
int user;
|
||||
int nice;
|
||||
int system;
|
||||
int idle;
|
||||
#if defined(__OpenBSD__)
|
||||
int spin;
|
||||
#endif
|
||||
int total;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue