diff options
author | ahoka <ahoka@pkgsrc.org> | 2010-12-16 11:34:51 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2010-12-16 11:34:51 +0000 |
commit | f168be3947f3b334a96a4cd719e268dc0ed6caf2 (patch) | |
tree | 59a84dacde9927d21852934d9b7ffeedc1e4f62b /sysutils/hal | |
parent | 3212bb9052fc66e97780909e5ad9b52990cdd2c2 (diff) | |
download | pkgsrc-f168be3947f3b334a96a4cd719e268dc0ed6caf2.tar.gz |
dont divide by 3600, beacuse gnome power applet doesnt expect it like this
ok by jared
Diffstat (limited to 'sysutils/hal')
-rw-r--r-- | sysutils/hal/files/hald-netbsd/envsys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/hal/files/hald-netbsd/envsys.c b/sysutils/hal/files/hald-netbsd/envsys.c index 37a10fe497d..7ecf8f7caa6 100644 --- a/sysutils/hal/files/hald-netbsd/envsys.c +++ b/sysutils/hal/files/hald-netbsd/envsys.c @@ -1,4 +1,4 @@ -/* $NetBSD: envsys.c,v 1.5 2009/03/01 18:22:31 jmcneill Exp $ */ +/* $NetBSD: envsys.c,v 1.6 2010/12/16 11:34:51 ahoka Exp $ */ /*- * Copyright (c) 2008 Jared D. McNeill <jmcneill@invisible.ca> @@ -220,10 +220,10 @@ envsys_battery_handler(HalDevice *d, prop_array_t properties) } else if (strcmp (descr, "charge rate") == 0) { battstate = CHARGING; - hal_device_property_set_int (d, "battery.charge_level.rate", intval / 3600); + hal_device_property_set_int (d, "battery.charge_level.rate", intval); } else if (strcmp (descr, "discharge rate") == 0) { battstate = DISCHARGING; - hal_device_property_set_int (d, "battery.charge_level.rate", intval / 3600); + hal_device_property_set_int (d, "battery.charge_level.rate", intval); } } |