Skip to content

Commit

Permalink
nit from suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Dec 18, 2024
1 parent 5d2e589 commit 1a45f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/sockets/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ PHP_FUNCTION(socket_get_option)
tv.tv_usec = timeout.tv_usec;
#else
tv.tv_sec = timeout ? (long)(timeout / 1000) : 0;
tv.tv_usec = timeout ? (long)((timeout * 1000) % 1000000) : 0;
tv.tv_usec = timeout ? (long)((timeout % 1000) * 1000) : 0;
#endif

array_init(return_value);
Expand Down

0 comments on commit 1a45f36

Please sign in to comment.