Don't accidently skip every second line when calculating the
idle time. MFC after: 2 weeks
This commit is contained in:
parent
08e09c6e13
commit
a88289fcb9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268004
@ -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]));
|
||||
|
Loading…
Reference in New Issue
Block a user