summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38e20a1)
raw | patch | inline | side by side (parent: 38e20a1)
author | Matthias Eble <psychotrahe@gmx.de> | |
Sun, 14 Jun 2009 21:31:29 +0000 (23:31 +0200) | ||
committer | Matthias Eble <psychotrahe@gmx.de> | |
Sun, 14 Jun 2009 21:31:29 +0000 (23:31 +0200) |
Time differences are now set to 0 in case of backward timejumps so there are no wrap-around problems any more.
The RTA calculation hopefully gets a more accurate value in these cases also.
The RTA calculation hopefully gets a more accurate value in these cases also.
plugins-root/check_icmp.c | patch | blob | history |
index ecf3d08bd139dd0505eee5d85ad9d6bd80a63712..cba7c4400eeb4ae47c6ac8b148abad08aef403da 100644 (file)
if(!early) early = &prog_start;
/* if early > later we return 0 so as to indicate a timeout */
- if(early->tv_sec > early->tv_sec ||
+ if(early->tv_sec > later->tv_sec ||
(early->tv_sec == later->tv_sec && early->tv_usec > later->tv_usec))
{
return 0;