Date: Fri, 13 Feb 2015 18:10:07 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r278686 - stable/10/sys/kern Message-ID: <201502131810.t1DIA7BP006732@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502131810.t1DIA7BP006732>