Skip to content

Commit

Permalink
Merge pull request #385 from bikallem/mtime-deprecation
Browse files Browse the repository at this point in the history
time: Mtime.Spand.to_s has been deprecated in mtime 2.0.0
  • Loading branch information
talex5 committed Dec 9, 2022
2 parents 90de1d4 + 0d11d19 commit c987f99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(hmap (>= 0.8.1))
(astring (and (>= 0.8.5) :with-test))
(crowbar (and (>= 0.2) :with-test))
(mtime (>= 1.2.0))
(mtime (>= 2.0.0))
(alcotest (and (>= 1.4.0) :with-test))))
(package
(name eio_linux)
Expand Down
2 changes: 1 addition & 1 deletion eio.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ depends: [
"hmap" {>= "0.8.1"}
"astring" {>= "0.8.5" & with-test}
"crowbar" {>= "0.2" & with-test}
"mtime" {>= "1.2.0"}
"mtime" {>= "2.0.0"}
"alcotest" {>= "1.4.0" & with-test}
"odoc" {with-doc}
]
Expand Down
2 changes: 1 addition & 1 deletion lib_eio/time.ml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module Timeout = struct
let pp f = function
| Unlimited -> Fmt.string f "(no timeout)"
| Timeout (_clock, d) ->
let d = Mtime.Span.to_s d in
let d = Mtime.Span.to_float_ns d /. 1e9 in
pp_duration f d
| Deprecated (_clock, d) ->
pp_duration f d
Expand Down

0 comments on commit c987f99

Please sign in to comment.