Explorar o código

Fix a little logic error

Laslo Hunhold %!s(int64=8) %!d(string=hai) anos
pai
achega
0f7e022381
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      slstatus.c

+ 1 - 1
slstatus.c

@@ -169,7 +169,7 @@ cpu_freq(void)
 	int freq;
 
 	return (pscanf("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq",
-	               "%i", &freq) != 1) ?
+	               "%i", &freq) == 1) ?
 	       bprintf("%d", (freq + 500) / 1000) : unknown_str;
 }