Changes
1 changed files (+2/-2)
-
-
@@ -281,9 +281,9 @@const sec = std.math.divFloor(u32, opts.receive_window_ms, 1_000) catch { return ScanError.InvalidReceiveWindow; }; const usec = 1_000 * (std.math.rem(u32, opts.receive_window_ms, 1_000) catch { const usec = @min(std.math.maxInt(i32), 1_000 * (std.math.rem(u32, opts.receive_window_ms, 1_000) catch { return ScanError.InvalidReceiveWindow; }); })); const timeout = std.posix.timeval{ .sec = sec, .usec = usec }; std.posix.setsockopt(
-