Skip to content

Commit

Permalink
fix: utime.nim: mix op
Browse files Browse the repository at this point in the history
  • Loading branch information
lit authored Jun 10, 2024
1 parent 185d7d0 commit 4ca3276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylib/Lib/os_impl/posix_like/utime.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ elif defined(posix):
func stoTime(s_ns: float): Timeval =
let
s_int = BiggestInt s_ns
us = (s_ns - s_int) * 1e6
us = (s_ns - s_int.float) * 1e6
initTimeval(s_int, us)
func nstoTime(ns: int): Timeval =
let tot_us = ns div 1000
Expand Down

0 comments on commit 4ca3276

Please sign in to comment.