Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
star-tek-mb authored and ikskuh committed Nov 13, 2022
1 parent 734de02 commit caa31ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network.zig
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ pub const Socket = struct {
} else {
var read_timeout: std.os.timeval = undefined;
read_timeout.tv_sec = @intCast(@TypeOf(read_timeout.tv_sec), @divTrunc(micros, 1000000));
read_timeout.tv_usec = @intCast(@TypeOf(read_timeout.tv_sec), @mod(micros, 1000000));
read_timeout.tv_usec = @intCast(@TypeOf(read_timeout.tv_usec), @mod(micros, 1000000));
try std.os.setsockopt(self.internal, std.os.SOL.SOCKET, std.os.SO.RCVTIMEO, std.mem.toBytes(read_timeout)[0..]);
}
}
Expand Down

0 comments on commit caa31ef

Please sign in to comment.