Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
gkrellm-cpufreq
gkrellm-cpufreq-cpulabel.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gkrellm-cpufreq-cpulabel.patch of Package gkrellm-cpufreq
Index: cpufreq.c =================================================================== --- cpufreq.c.orig 2014-01-06 17:39:46.741264022 +0100 +++ cpufreq.c 2014-01-06 17:47:41.798749821 +0100 @@ -81,6 +81,7 @@ static GkrellmDecal* text_decal_freq[NCPU_MAX]; static GkrellmDecal* text_decal_gov[NCPU_MAX]; +static GkrellmDecal* text_decal_cpu[NCPU_MAX]; static GkrellmKrell* slider_krell[NCPU_MAX]; static GkrellmKrell* slider_in_motion[NCPU_MAX]; @@ -245,6 +246,10 @@ text_decal_gov[cpu]->x_off = 0; gkrellm_draw_decal_text(panel, text_decal_gov[cpu], governor_text[cpu], -1); + snprintf(theText, length - 1, "CPU%d", cpu); + text_decal_cpu[cpu]->x_off = 0; + gkrellm_draw_decal_text(panel, text_decal_cpu[cpu], + theText, -1); } sprintf(theText, "%d MHz", (int)((khz_sum/ncpu+500)/1000)); text_decal_freq[0]->x_off = 0; @@ -257,6 +262,10 @@ text_decal_gov[cpu]->x_off = 0; gkrellm_draw_decal_text(panel, text_decal_gov[cpu], governor_text[cpu], -1); + snprintf(theText, length - 1, "CPU%d", cpu); + text_decal_cpu[cpu]->x_off = 0; + gkrellm_draw_decal_text(panel, text_decal_cpu[cpu], + theText, -1); } } @@ -417,6 +426,14 @@ /* text style */ ts = gkrellm_meter_textstyle(style_id); + /* the cpu label text */ + text_decal_cpu[cpu] = + gkrellm_create_decal_text(panel, "CPU0123456789", ts, style, + -1, /* x = -1 places at left margin */ + y, /* y = -1 places at top margin */ + -1); /* w = -1 makes decal the panel width minus margins */ + y = text_decal_cpu[cpu]->y + text_decal_cpu[cpu]->h + 1; + /* the governor text */ text_decal_gov[cpu] = gkrellm_create_decal_text(panel, "abcdefghijklmnopqrstuvwxyz", ts, style,
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