Skip to content

Commit

Permalink
fix uptime > 1 day
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Corfield <[email protected]>
  • Loading branch information
seancorfield committed Dec 8, 2024
1 parent 2309953 commit 2fce829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/corfield/dev/repl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
(-> (java.lang.management.ManagementFactory/getRuntimeMXBean)
(.getUptime)
(java.time.Duration/ofMillis)
(as-> t (map #(% t) [#(.toHoursPart %) #(.toMinutesPart %) #(.toSecondsPart %)])
(as-> t (map #(% t) [#(.toHours %) #(.toMinutesPart %) #(.toSecondsPart %)])
(let [[h & ms] t]
(map vector
(into ((juxt #(long (/ % 24)) #(mod % 24)) h) ms)
Expand Down

0 comments on commit 2fce829

Please sign in to comment.