mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 09:44:04 +00:00
Extend commit 2568030509
to the whole cpu object.
This is still a workaround, the underlining starvation issue remains unsolved.
This commit is contained in:
parent
b44b85c74f
commit
99fd8ef380
10
src/conky.c
10
src/conky.c
@ -898,12 +898,12 @@ void generate_text_internal(char *p, int p_max_size,
|
||||
print_cmdline_to_pid(obj, p, p_max_size);
|
||||
}
|
||||
OBJ(cpu) {
|
||||
if (obj->data.i > info.cpu_count) {
|
||||
NORM_ERR("obj->data.i %i info.cpu_count %i",
|
||||
obj->data.i, info.cpu_count);
|
||||
CRIT_ERR(NULL, NULL, "attempting to use more CPUs than you have!");
|
||||
}
|
||||
if (cur->cpu_usage) {
|
||||
if (obj->data.i > info.cpu_count) {
|
||||
NORM_ERR("obj->data.i %i info.cpu_count %i",
|
||||
obj->data.i, info.cpu_count);
|
||||
CRIT_ERR(NULL, NULL, "attempting to use more CPUs than you have!");
|
||||
}
|
||||
percent_print(p, p_max_size,
|
||||
round_to_int(cur->cpu_usage[obj->data.i] * 100.0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user