Fixed the condition determining if setting the frequency is available

This commit is contained in:
Pierre Pronchery 2010-01-19 00:52:55 +00:00
parent a30e30e004
commit b1e15a3770

View File

@ -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;