Skip to content

Commit ff8d0f8

Browse files
Apply round
1 parent e9c0d58 commit ff8d0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TerminalSystemMonitor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ function layout(x, y)
7676
memoryusageGB = round((Sys.total_memory() - Sys.free_memory()) / 2^30, digits = 1)
7777
memorytotGB = Sys.total_memory() / 2 ^ 30
7878
(memorytot, memoryusage, memoryunit) = if memorytotGB 1.0
79-
1024memorytotGB, 1024memoryusageGB, "MB"
79+
round(1024memorytotGB), 1024memoryusageGB, "MB"
8080
else
81-
memorytotGB, memoryusageGB, "GB"
81+
round(memorytotGB), memoryusageGB, "GB"
8282
end
8383

8484
seconds = floor(Int, Sys.uptime())

0 commit comments

Comments
 (0)