From f3178199848911c8fb51b30e3993ae47120fcc6c Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Fri, 18 May 2018 19:58:51 +0200 Subject: Use %d instead of accidentally %i --- components/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/cpu.c') 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; } -- cgit v1.2.3