mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-02 12:08:33 +00:00
simplify this conditional a bit
This commit is contained in:
parent
169dbe4921
commit
a94b2ec5a1
@ -153,14 +153,12 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
|
||||
obj->data.l = get_x11_color(s);
|
||||
} else
|
||||
#endif /* X11 */
|
||||
#ifdef __OpenBSD__
|
||||
OBJ(freq, 0)
|
||||
#else
|
||||
#ifndef __OpenBSD__
|
||||
OBJ(acpitemp, 0)
|
||||
obj->data.i = open_acpi_temperature(arg);
|
||||
END OBJ(acpiacadapter, 0)
|
||||
END OBJ(freq, 0)
|
||||
#endif /* !__OpenBSD__ */
|
||||
END OBJ(freq, 0)
|
||||
get_cpu_count();
|
||||
if (!arg || !isdigit(arg[0]) || strlen(arg) >= 2 || atoi(&arg[0]) == 0
|
||||
|| atoi(&arg[0]) > info.cpu_count) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user