artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7171b1e
)
set cpuspeed to 0 if hw.cpuspeed cannot be retrieved
author
robert
<robert@openbsd.org>
Wed, 12 Jan 2022 13:09:29 +0000
(13:09 +0000)
committer
robert
<robert@openbsd.org>
Wed, 12 Jan 2022 13:09:29 +0000
(13:09 +0000)
ok kettenis@
usr.sbin/apm/apm.c
patch
|
blob
|
history
diff --git
a/usr.sbin/apm/apm.c
b/usr.sbin/apm/apm.c
index
f896296
..
918a164
100644
(file)
--- a/
usr.sbin/apm/apm.c
+++ b/
usr.sbin/apm/apm.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: apm.c,v 1.3
8 2021/04/06 20:30:32 kn Exp $
*/
+/* $OpenBSD: apm.c,v 1.3
9 2022/01/12 13:09:29 robert Exp $
*/
/*
* Copyright (c) 1996 John T. Kohl
@@
-163,7
+163,7
@@
main(int argc, char *argv[])
size_t cpuspeed_sz = sizeof(cpuspeed);
if (sysctl(cpuspeed_mib, 2, &cpuspeed, &cpuspeed_sz, NULL, 0) == -1)
-
err(1, "sysctl hw.cpuspeed")
;
+
cpuspeed = 0
;
while ((ch = getopt(argc, argv, "ACHLlmbvaPSzZf:")) != -1) {
switch (ch) {