diff options
author | charnier <charnier@FreeBSD.org> | 2000-03-26 14:44:34 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2000-03-26 14:44:34 +0000 |
commit | 8feb2153999b3cef6066ab841adfea97b9dde801 (patch) | |
tree | f850f8a1d570886b11b691103bf5389aa8c19486 | |
parent | c56fe754f50920dddfc93754454829e4672e3634 (diff) | |
download | FreeBSD-src-8feb2153999b3cef6066ab841adfea97b9dde801.zip FreeBSD-src-8feb2153999b3cef6066ab841adfea97b9dde801.tar.gz |
1000000 usec -> 1 sec 0 usec; fix.
-rw-r--r-- | usr.sbin/mrouted/main.c | 2 | ||||
-rw-r--r-- | usr.sbin/mrouted/mtrace.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c index 7ab3de8..b3526d5 100644 --- a/usr.sbin/mrouted/main.c +++ b/usr.sbin/mrouted/main.c @@ -532,7 +532,7 @@ main(argc, argv) gettimeofday(&curtime, NULL); difftime.tv_sec = curtime.tv_sec - lasttime.tv_sec; difftime.tv_usec += curtime.tv_usec - lasttime.tv_usec; - while (difftime.tv_usec > 1000000) { + while (difftime.tv_usec >= 1000000) { difftime.tv_sec++; difftime.tv_usec -= 1000000; } diff --git a/usr.sbin/mrouted/mtrace.c b/usr.sbin/mrouted/mtrace.c index 2ddf4f9..66df8e28 100644 --- a/usr.sbin/mrouted/mtrace.c +++ b/usr.sbin/mrouted/mtrace.c @@ -1955,7 +1955,7 @@ stat_line(r, s, have_next, rst) v_out = ntohl(s->tr_vifin) - ntohl(r->tr_vifin); v_pps = v_out / timediff; whochar = 'v'; - /* Fall through */ + /* FALLTHROUGH */ case OUTS: if (tunstats) @@ -2005,7 +2005,7 @@ stat_line(r, s, have_next, rst) g_out = ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt); g_pps = g_out / timediff; whochar = 'v'; - /* Fall through */ + /* FALLTHROUGH */ #endif case OUTS: |