Skip to content

Commit

Permalink
nsec
Browse files Browse the repository at this point in the history
  • Loading branch information
FObersteiner committed Sep 5, 2024
1 parent 17e6b20 commit c5c30e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn main() !void {
sock,
posix.SOL.SOCKET,
posix.SO.RCVTIMEO,
&std.mem.toBytes(posix.timespec{ .sec = timeout_sec }), // zig 0.13 : .tv_sec
&std.mem.toBytes(posix.timespec{ .sec = timeout_sec, .nsec = 0 }), // zig 0.13 : .tv_sec, .tv_nsec
);
}

Expand Down

0 comments on commit c5c30e6

Please sign in to comment.