237c8f2f08
- Enable the new SMP code (allowing the user to actually see multiple cores) - Enable RES and VSIZE display in $top From Pascal Stumpf: thanks! ok benoit@, jasper@
57 lines
1.8 KiB
Plaintext
57 lines
1.8 KiB
Plaintext
$OpenBSD: patch-src_conky_c,v 1.5 2011/09/11 18:53:28 dcoppa Exp $
|
|
--- src/conky.c.orig Tue Oct 5 23:29:36 2010
|
|
+++ src/conky.c Mon Jul 18 13:59:30 2011
|
|
@@ -125,7 +125,7 @@
|
|
|
|
/* FIXME: apm_getinfo is unused here. maybe it's meant for common.c */
|
|
#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|
|
- || defined(__OpenBSD__)) && (defined(i386) || defined(__i386__))
|
|
+ || defined(__OpenBSD__))
|
|
int apm_getinfo(int fd, apm_info_t aip);
|
|
char *get_apm_adapter(void);
|
|
char *get_apm_battery_life(void);
|
|
@@ -401,10 +401,6 @@ static int maximum_width;
|
|
|
|
#endif /* X11 */
|
|
|
|
-#ifdef __OpenBSD__
|
|
-static int sensor_device;
|
|
-#endif
|
|
-
|
|
long color0, color1, color2, color3, color4, color5, color6, color7, color8,
|
|
color9;
|
|
|
|
@@ -1030,7 +1026,7 @@ void generate_text_internal(char *p, int p_max_size,
|
|
get_powerbook_batt_info(p, p_max_size, obj->data.i);
|
|
}
|
|
#endif /* __linux__ */
|
|
-#if (defined(__FreeBSD__) || defined(__linux__))
|
|
+#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__))
|
|
OBJ(if_up) {
|
|
if (!interface_up(obj)) {
|
|
DO_JUMP;
|
|
@@ -1914,7 +1910,7 @@ void generate_text_internal(char *p, int p_max_size,
|
|
}
|
|
#endif /* __linux__ */
|
|
#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|
|
- || defined(__OpenBSD__)) && (defined(i386) || defined(__i386__))
|
|
+ || defined(__OpenBSD__))
|
|
OBJ(apm_adapter) {
|
|
char *msg;
|
|
|
|
@@ -3534,12 +3530,14 @@ static void main_loop(void)
|
|
if(update_interval_bat != NOBATTERY && update_interval_bat != update_interval_old) {
|
|
char buf[max_user_text];
|
|
|
|
+#ifndef __OpenBSD__
|
|
get_battery_short_status(buf, max_user_text, "BAT0");
|
|
if(buf[0] == 'D') {
|
|
update_interval = update_interval_bat;
|
|
} else {
|
|
update_interval = update_interval_old;
|
|
}
|
|
+#endif
|
|
}
|
|
info.looped++;
|
|
|