Matthias Kilian [Tue Jul 26, 2005 at 11:59:06PM +0200] wrote:
>Here's the latest port for kismet-2005-07-R1a (a last-minute-release
>with a modified pcapsource.cc). It also makes DEBUG=-g work and
>completes Bernd's simplification (state and info files go to
>/var/log/kismet instead of /var/log/kismet/.kismet in the default
>configuration).
>
The battery time display is wrong. Naddy has a patch for it:

$OpenBSD$
--- panelfront.cc.orig  Mon Jul 25 20:41:35 2005
+++ panelfront.cc       Mon Jul 25 20:57:55 2005
@@ -1561,7 +1561,7 @@ int PanelFront::Tick() {
                        }
                        if (bat_available == 1) {
                                bat_percentage = (int)api.battery_life;
-                               bat_time = (int)api.minutes_left;
+                               bat_time = (int)api.minutes_left * 60;
                                if (api.battery_state == APM_BATT_CHARGING) {
                                        bat_ac = 1;
                                        bat_charging = 1;



Reply via email to