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