diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2005-09-26 12:16:27 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2005-09-26 12:16:27 +0000 |
| commit | db20dc4dbb9dd785871166dc1cfc1948aa355880 (patch) | |
| tree | d1ed575918cb3bd3261248a12fa2b093e15b31fe /usr.sbin | |
| parent | 454c3d13be00aea57eb6e62014a26a299d8bd356 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/powerd/powerd.8 | 2 | ||||
| -rw-r--r-- | usr.sbin/powerd/powerd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/powerd/powerd.8 b/usr.sbin/powerd/powerd.8 index 755bf730c2db4..a7f442dff1d43 100644 --- a/usr.sbin/powerd/powerd.8 +++ b/usr.sbin/powerd/powerd.8 @@ -45,7 +45,7 @@ The .Nm utility monitors the system state and sets various power control options accordingly. -It offers three modes (max, min, and adaptive) that can be +It offers three modes (maximum, minimum, and adaptive) that can be individually selected while on AC power or batteries. .Pp Maximum mode chooses the highest performance values. diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c index e866d07304388..3c9f1f333d1b2 100644 --- a/usr.sbin/powerd/powerd.c +++ b/usr.sbin/powerd/powerd.c @@ -228,9 +228,9 @@ static void parse_mode(char *arg, int *mode, int ch) { - if (strcmp(arg, "min") == 0) + if (strcmp(arg, "minimum") == 0 || strcmp(arg, "min") == 0) *mode = MODE_MIN; - else if (strcmp(arg, "max") == 0) + else if (strcmp(arg, "maximum") == 0 || strcmp(arg, "max") == 0) *mode = MODE_MAX; else if (strcmp(arg, "adaptive") == 0) *mode = MODE_ADAPTIVE; |
