mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-02 20:18:30 +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);
|
obj->data.l = get_x11_color(s);
|
||||||
} else
|
} else
|
||||||
#endif /* X11 */
|
#endif /* X11 */
|
||||||
#ifdef __OpenBSD__
|
#ifndef __OpenBSD__
|
||||||
OBJ(freq, 0)
|
|
||||||
#else
|
|
||||||
OBJ(acpitemp, 0)
|
OBJ(acpitemp, 0)
|
||||||
obj->data.i = open_acpi_temperature(arg);
|
obj->data.i = open_acpi_temperature(arg);
|
||||||
END OBJ(acpiacadapter, 0)
|
END OBJ(acpiacadapter, 0)
|
||||||
END OBJ(freq, 0)
|
|
||||||
#endif /* !__OpenBSD__ */
|
#endif /* !__OpenBSD__ */
|
||||||
|
END OBJ(freq, 0)
|
||||||
get_cpu_count();
|
get_cpu_count();
|
||||||
if (!arg || !isdigit(arg[0]) || strlen(arg) >= 2 || atoi(&arg[0]) == 0
|
if (!arg || !isdigit(arg[0]) || strlen(arg) >= 2 || atoi(&arg[0]) == 0
|
||||||
|| atoi(&arg[0]) > info.cpu_count) {
|
|| atoi(&arg[0]) > info.cpu_count) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user