Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern allow admins to disable pps rate limitation, by set...



details:   https://anonhg.NetBSD.org/src/rev/35565cd8aab3
branches:  trunk
changeset: 495642:35565cd8aab3
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Aug 02 12:24:11 2000 +0000

description:
allow admins to disable pps rate limitation, by setting "maxpps"
parameter to negative value.

diffstat:

 sys/kern/kern_time.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r ca96e5b98ec8 -r 35565cd8aab3 sys/kern/kern_time.c
--- a/sys/kern/kern_time.c      Wed Aug 02 12:13:22 2000 +0000
+++ b/sys/kern/kern_time.c      Wed Aug 02 12:24:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_time.c,v 1.52 2000/07/13 17:33:39 thorpej Exp $   */
+/*     $NetBSD: kern_time.c,v 1.53 2000/08/02 12:24:11 itojun Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -705,7 +705,9 @@
                *lasttime = tv;
                *curpps = 0;
                rv = 1;
-       } else if (*curpps < maxpps)
+       } else if (maxpps < 0)
+               rv = 1;
+       else if (*curpps < maxpps)
                rv = 1;
        else
                rv = 0;



Home | Main Index | Thread Index | Old Index