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
af0471aaec
commit
83b4eaaa16
@ -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…
x
Reference in New Issue
Block a user