diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-06-29 04:05:24 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-06-29 04:05:24 +0000 |
commit | 3709449d51fee828d725ff995c8e99c6f2d8614f (patch) | |
tree | 43e1501d0035d5b86f6725120b72e7226d776061 /sys/dev | |
parent | 7b052841c79f3a51ff8c0c4aed263ce7601fcbb6 (diff) |
60 is a more reasonable guess for number of minutes in an hour than 100.
spotted by TeXitoi. ok deraadt
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 85bebdb54da..7557d7fb735 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.160 2010/06/27 19:42:57 jordan Exp $ */ +/* $OpenBSD: acpi.c,v 1.161 2010/06/29 04:05:23 tedu Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -1036,7 +1036,7 @@ acpiioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) if (pi->ac_state == APM_AC_ON || rate == 0) pi->minutes_left = (unsigned int)-1; else - pi->minutes_left = 100 * minutes / rate; + pi->minutes_left = 60 * minutes / rate; /* running on battery */ pi->battery_life = remaining / bats; |