diff options
Diffstat (limited to 'components/cpu.c')
-rw-r--r-- | components/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/cpu.c b/components/cpu.c index 28e9a45..20354c0 100644 --- a/components/cpu.c +++ b/components/cpu.c @@ -3,8 +3,8 @@ #include <stdio.h> #include <string.h> -#include "../util.h" #include "../slstatus.h" +#include "../util.h" #if defined(__linux__) #define CPU_FREQ "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" @@ -110,9 +110,9 @@ b[CP_INTR])) / sum); } #elif defined(__FreeBSD__) + #include <devstat.h> #include <sys/param.h> #include <sys/sysctl.h> - #include <devstat.h> const char * cpu_freq(const char *unused) |