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 eda8d82 commit 03aecdaCopy full SHA for 03aecda
src/libstd/sys/unix/net.rs
@@ -280,7 +280,7 @@ impl Socket {
280
};
281
let mut timeout = libc::timeval {
282
tv_sec: secs,
283
- tv_usec: (dur.subsec_nanos() / 1000) as libc::suseconds_t,
+ tv_usec: dur.subsec_micros() as libc::suseconds_t,
284
285
if timeout.tv_sec == 0 && timeout.tv_usec == 0 {
286
timeout.tv_usec = 1;
0 commit comments