Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
xfce4-panel-plugin-cpufreq
xfce4-panel-plugin-cpufreq-correctly-refresh-co...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfce4-panel-plugin-cpufreq-correctly-refresh-core.patch of Package xfce4-panel-plugin-cpufreq
--- xfce4-cpufreq-plugin-1.0.0.orig/panel-plugin/xfce4-cpufreq-plugin.c +++ xfce4-cpufreq-plugin-1.0.0/panel-plugin/xfce4-cpufreq-plugin.c @@ -118,15 +118,16 @@ cpufreq_update_tooltip (CpuInfo *cpu) gboolean cpufreq_update_plugin (void) { - gint i; - for (i = 0; i < cpuFreq->cpus->len; i++) - { - CpuInfo *cpu = g_ptr_array_index (cpuFreq->cpus, i); - if (cpufreq_update_label (cpu) == FALSE) - return FALSE; - if (cpufreq_update_tooltip (cpu) == FALSE) - return FALSE; - } + CpuInfo *cpu; + + g_return_val_if_fail (cpuFreq->options->show_cpu < cpuFreq->cpus->len, FALSE); + + cpu = g_ptr_array_index (cpuFreq->cpus, cpuFreq->options->show_cpu); + if (cpufreq_update_label (cpu) == FALSE) + return FALSE; + if (cpufreq_update_tooltip (cpu) == FALSE) + return FALSE; + return TRUE; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor