We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e42456 commit b962ae1Copy full SHA for b962ae1
library/std/src/sys/windows/net.rs
@@ -162,7 +162,7 @@ impl Socket {
162
163
let mut timeout = c::timeval {
164
tv_sec: cmp::min(timeout.as_secs(), c_long::MAX as u64) as c_long,
165
- tv_usec: (timeout.subsec_nanos() / 1000) as c_long,
+ tv_usec: timeout.subsec_micros() as c_long,
166
};
167
168
if timeout.tv_sec == 0 && timeout.tv_usec == 0 {
0 commit comments