! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Plugin always shows frequency of the last CPU, regardless of settings
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-cpufreq-plugin
Component:
General

Comments

Description Daniel Müllner 2012-11-05 19:19:36 CET
The CPUfreq plugin shows always the clock frequency of the last CPU, regardless of which CPU has been selected in the options. The problem is that the function cpufreq_update_plugin in xfce4-cpufreq-configure updates the label and tooltip for all cores, so that the text is always overwritten with the information about the last core:

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

I suggest something like:

        gint i = cpuFreq->options->show_cpu;
        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;
Comment 1 Lionel Le Folgoc 2012-11-05 19:54:07 CET

*** This bug has been marked as a duplicate of bug 7179 ***

Bug #9459

Reported by:
Daniel Müllner
Reported on: 2012-11-05
Last modified on: 2012-11-05

People

Assignee:
Xfce-Goodies Maintainers
CC List:
1 user

Version

Attachments

Additional information