summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-08-28 16:13:59 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-08-28 16:13:59 +0000
commit45285d506dd9d427af04ee7e81c6758762661a35 (patch)
tree634a179c8c2c152ada3b13b4e01a9f7363ed076a
parent1cabce8d4e4ba00fcf1bf674b12c52d037f21852 (diff)
log battery changes every 10%, not every 21.
ok deraadt jung phessler
-rw-r--r--usr.sbin/apmd/apmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index 11eb690f7b1..e0cf93eb5ae 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmd.c,v 1.75 2015/02/06 08:16:50 dcoppa Exp $ */
+/* $OpenBSD: apmd.c,v 1.76 2015/08/28 16:13:58 tedu Exp $ */
/*
* Copyright (c) 1995, 1996 John T. Kohl
@@ -153,7 +153,7 @@ power_status(int fd, int force, struct apm_power_info *pinfo)
bstate.ac_state != last.ac_state ||
bstate.battery_state != last.battery_state ||
(bstate.minutes_left && bstate.minutes_left < 15) ||
- abs(bstate.battery_life - last.battery_life) > 20) {
+ abs(bstate.battery_life - last.battery_life) >= 10) {
#ifdef __powerpc__
/*
* When the battery is charging, the estimated life