diff options
author | bz <bz@FreeBSD.org> | 2008-09-10 19:42:13 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-09-10 19:42:13 +0000 |
commit | 83b4eaaa16e7c110ff0e856c2aa4084fb5e7564f (patch) | |
tree | 6becea17638b334d627f17840de8c4f3756589e7 /sys/netinet6/mld6.c | |
parent | af0471aaecf118efcab5180cdca70a1151722ae3 (diff) | |
download | FreeBSD-src-83b4eaaa16e7c110ff0e856c2aa4084fb5e7564f.zip FreeBSD-src-83b4eaaa16e7c110ff0e856c2aa4084fb5e7564f.tar.gz |
mld_timerresid() returns ms so instead of doing the maths in usec
and then dividing down to ms, do the maths in ms.
Obtained from: NetBSD mld6.c rev. 1.47
MFC after: 2 months
Diffstat (limited to 'sys/netinet6/mld6.c')
-rw-r--r-- | sys/netinet6/mld6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c index 1216d95..6ca9d0c 100644 --- a/sys/netinet6/mld6.c +++ b/sys/netinet6/mld6.c @@ -204,7 +204,7 @@ mld_timerresid(struct in6_multi *in6m) } /* return the remaining time in milliseconds */ - return (((u_long)(diff.tv_sec * 1000000 + diff.tv_usec)) / 1000); + return (diff.tv_sec * 1000 + diff.tv_usec / 1000); } void |