We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53a081c + e68cda7 commit 96f7cd1Copy full SHA for 96f7cd1
ocaml/libs/xapi-stdext/lib/xapi-stdext-threads/scheduler.ml
@@ -36,8 +36,7 @@ let lock = Mutex.create ()
36
module Clock = struct
37
let span s = Mtime.Span.of_uint64_ns (Int64.of_float (s *. 1e9))
38
39
- let span_to_s span =
40
- Mtime.Span.to_uint64_ns span |> Int64.to_float |> fun ns -> ns /. 1e9
+ let span_to_s span = Mtime.Span.to_float_ns span |> fun ns -> ns /. 1e9
41
42
let add_span clock secs =
43
(* return mix or max available value if the add overflows *)
0 commit comments