summaryrefslogtreecommitdiff
path: root/sys/conf/param.c
diff options
context:
space:
mode:
authorws <ws@NetBSD.org>1996-10-02 18:04:56 +0000
committerws <ws@NetBSD.org>1996-10-02 18:04:56 +0000
commit2da166f6609eaba44bb4ab92cdd6bc1a8a3c24ff (patch)
tree425e947eee47fc5cd828b7854952d7bb0c9171c6 /sys/conf/param.c
parent31afb659695829b0c11f9fca7597d424f08cf56d (diff)
Fix p_nice vs. NZERO code.
Change NZERO to 20 to always make p_nice positive. On Christos' suggestion make p_nice explicitly u_char.
Diffstat (limited to 'sys/conf/param.c')
-rw-r--r--sys/conf/param.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/conf/param.c b/sys/conf/param.c
index a4d9f133a11..094628439cf 100644
--- a/sys/conf/param.c
+++ b/sys/conf/param.c
@@ -1,4 +1,4 @@
-/* $NetBSD: param.c,v 1.17 1996/07/17 21:52:18 explorer Exp $ */
+/* $NetBSD: param.c,v 1.18 1996/10/02 18:05:02 ws Exp $ */
/*
* Copyright (c) 1980, 1986, 1989 Regents of the University of California.
@@ -174,16 +174,17 @@ struct utsname utsname;
/*
* These control when and to what priority a process gets after a certain
* amount of CPU time expires. AUTONICETIME is in seconds.
+ * AUTONICEVAL is NOT offset by NZERO, i.e. it's between PRIO_MIN and PRIO_MAX.
*/
#ifdef AUTONICETIME
int autonicetime = AUTONICETIME;
#else
-int autonicetime = (60 * 10); /* 10 minutes */
+int autonicetime = (60 * 10); /* 10 minutes */
#endif
#ifdef AUTONICEVAL
int autoniceval = AUTONICEVAL;
#else
-int autoniceval = NZERO + 4; /* default + 4 (usually 0 + 4) */
+int autoniceval = 4; /* default + 4 */
#endif