Xinqi Bao's Git

Fix ram_free for Linux
[slstatus.git] / components / cpu.c
index b9b3924..60a7991 100644 (file)
@@ -12,7 +12,7 @@
                int freq;
 
                return (pscanf("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq",
-                              "%i", &freq) == 1) ?
+                              "%d", &freq) == 1) ?
                       bprintf("%d", (freq + 500) / 1000) : NULL;
        }