svn commit: r268004 - head/usr.sbin/rwhod

David Malone dwmalone at FreeBSD.org
Sat Jun 28 15:53:29 UTC 2014


Author: dwmalone
Date: Sat Jun 28 15:53:28 2014
New Revision: 268004
URL: http://svnweb.freebsd.org/changeset/base/268004

Log:
  Don't accidently skip every second line when calculating the
  idle time.
  
  MFC after:	2 weeks

Modified:
  head/usr.sbin/rwhod/rwhod.c

Modified: head/usr.sbin/rwhod/rwhod.c
==============================================================================
--- head/usr.sbin/rwhod/rwhod.c	Sat Jun 28 09:53:44 2014	(r268003)
+++ head/usr.sbin/rwhod/rwhod.c	Sat Jun 28 15:53:28 2014	(r268004)
@@ -488,7 +488,6 @@ sender_process(void)
 		for (we = mywd.wd_we; we < wend; we++) {
 			if (stat(we->we_utmp.out_line, &stb) >= 0)
 				we->we_idle = htonl(now - stb.st_atime);
-			we++;
 		}
 		(void) getloadavg(avenrun,
 		    sizeof(avenrun) / sizeof(avenrun[0]));


More information about the svn-src-all mailing list