Fixed the condition determining if setting the frequency is available
This commit is contained in:
parent
a30e30e004
commit
b1e15a3770
|
@ -83,8 +83,8 @@ static GtkWidget * _cpufreq_init(PanelApplet * applet)
|
|||
|
||||
if(sysctlbyname("machdep.est.frequency.available", &freq, &freqsize,
|
||||
NULL, 0) != 0
|
||||
|| sysctlbyname("machdep.powernow.frequency.available",
|
||||
&freq, &freqsize, NULL, 0) >= 0)
|
||||
&& sysctlbyname("machdep.powernow.frequency.available",
|
||||
&freq, &freqsize, NULL, 0) != 0)
|
||||
{
|
||||
error_set("%s: %s", "cpufreq", strerror(errno));
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user