In my RH 9 install, the battstat applet is constantly
at the top of my top list (only taking 2%, but this is a
notebook!). Two things:
1) I certainly don't need a 1 second update about the
stats of my notebook's battery. Every 2 minutes would
probably suffice.
2) It shouldn't be so expensive to get this info. Isn't it
available in /proc?
In this patch I bumped the update time up to 2 minutes.
[root@bird BUILD]# diff -u
gnome-applets-2.2.0/battstat/battstat_applet.c.orig
gnome-applets-2.2.0/battstat/battstat_applet.c
--- gnome-applets-2.2.0/battstat/battstat_applet.c.orig
2003-06-12 17:46:54.000000000 -0400
+++ gnome-applets-2.2.0/battstat/battstat_applet.c
2003-06-12 17:42:27.000000000 -0400
@@ -1501,7 +1501,7 @@
pixmap_timeout(battstat);
change_orient (applet, battstat->orienttype, battstat );
- battstat->pixtimer = gtk_timeout_add (1000,
pixmap_timeout, battstat);
+ battstat->pixtimer = gtk_timeout_add (120000,
pixmap_timeout, battstat);
gtk_container_add (GTK_CONTAINER (battstat->applet),
battstat->hbox1);