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:
parent
413134305e
commit
9de45b2780
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182915
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user