Use %d instead of accidentally %i
This commit is contained in:
parent
f170028527
commit
f317819984
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue