svn commit: r278686 - stable/10/sys/kern
Ian Lepore
ian at FreeBSD.org
Fri Feb 13 18:10:07 UTC 2015
Author: ian
Date: Fri Feb 13 18:10:06 2015
New Revision: 278686
URL: https://svnweb.freebsd.org/changeset/base/278686
Log:
MFC r277025: Fix an off-by-one in ppsratecheck().
Modified:
stable/10/sys/kern/kern_time.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/kern_time.c
==============================================================================
--- stable/10/sys/kern/kern_time.c Fri Feb 13 18:03:50 2015 (r278685)
+++ stable/10/sys/kern/kern_time.c Fri Feb 13 18:10:06 2015 (r278686)
@@ -982,7 +982,7 @@ ppsratecheck(struct timeval *lasttime, i
return (maxpps != 0);
} else {
(*curpps)++; /* NB: ignore potential overflow */
- return (maxpps < 0 || *curpps < maxpps);
+ return (maxpps < 0 || *curpps <= maxpps);
}
}
More information about the svn-src-stable-10
mailing list