diff options
Diffstat (limited to 'src/print_cpu_usage.c')
-rw-r--r-- | src/print_cpu_usage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/print_cpu_usage.c b/src/print_cpu_usage.c index 7de42f9..979e082 100644 --- a/src/print_cpu_usage.c +++ b/src/print_cpu_usage.c @@ -46,7 +46,9 @@ struct cpu_usage { int total; }; +#if defined(__linux__) static int cpu_count = 0; +#endif static struct cpu_usage prev_all = {0, 0, 0, 0, 0}; static struct cpu_usage *prev_cpus = NULL; static struct cpu_usage *curr_cpus = NULL; |