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])); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"