55d6c9dfa5
from Vlad Glagolev (MAINTAINER)
18 lines
641 B
Plaintext
18 lines
641 B
Plaintext
$OpenBSD: patch-src_conky_c,v 1.2 2008/02/03 16:04:09 jasper Exp $
|
|
--- src/conky.c.orig Wed Nov 14 22:41:12 2007
|
|
+++ src/conky.c Sun Feb 3 16:49:52 2008
|
|
@@ -3710,7 +3710,12 @@ static void generate_text_internal(char *p, int p_max_
|
|
#endif /* !__OpenBSD__ */
|
|
OBJ(freq) {
|
|
if (obj->a) {
|
|
- obj->a = get_freq(p, p_max_size, "%.0f", 1, obj->data.cpu_index);
|
|
+#ifndef __OpenBSD__
|
|
+ obj->a = get_freq(p, p_max_size, "%'.2f", 1000, obj->data.cpu_index);
|
|
+#else
|
|
+ /* OpenBSD has no such flag (SUSv2) */
|
|
+ obj->a = get_freq(p, p_max_size, "%.2f", 1000, obj->data.cpu_index);
|
|
+#endif
|
|
}
|
|
}
|
|
OBJ(freq_g) {
|