summaryrefslogtreecommitdiff
path: root/components/cpu.c
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-05-18 19:58:51 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-18 19:58:51 +0200
commitf3178199848911c8fb51b30e3993ae47120fcc6c (patch)
tree57507d04a7cf08eba3d04fe5302c03e9b5d8040e /components/cpu.c
parentf170028527bdccead9a99797b45011d5e76100f1 (diff)
Use %d instead of accidentally %i
Diffstat (limited to 'components/cpu.c')
-rw-r--r--components/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/cpu.c b/components/cpu.c
index b9b3924..60a7991 100644
--- a/components/cpu.c
+++ b/components/cpu.c
@@ -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;
}