1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-05 05:28:32 +00:00

Fix "conky failes to build with --disable-ncurses" (sf.net #3541329)

This commit is contained in:
Pavel Labath 2012-07-13 13:41:09 +02:00
parent 410c89ab1c
commit fd9462da5e

View File

@ -885,12 +885,12 @@ void generate_text_internal(char *p, int p_max_size,
OBJ(cpu) { OBJ(cpu) {
if (cur->cpu_usage) { if (cur->cpu_usage) {
if (obj->data.i > info.cpu_count) { if (obj->data.i > info.cpu_count) {
static bool warned = false; static int warned = 0;
if(!warned) { if(!warned) {
NORM_ERR("obj->data.i %i info.cpu_count %i", NORM_ERR("obj->data.i %i info.cpu_count %i",
obj->data.i, info.cpu_count); obj->data.i, info.cpu_count);
NORM_ERR("attempting to use more CPUs than you have!"); NORM_ERR("attempting to use more CPUs than you have!");
warned = true; warned = 1;
} }
} else { } else {
percent_print(p, p_max_size, percent_print(p, p_max_size,