Fix platform dependent field

This commit is contained in:
lucic71 2022-07-19 23:56:57 +03:00
parent c1e9069aa1
commit abba2c89ab
1 changed files with 1 additions and 3 deletions

View File

@ -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
}; };