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
This commit is contained in:
bz 2008-09-10 19:42:13 +00:00
parent af0471aaec
commit 83b4eaaa16

View File

@ -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