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 c466969 + 3d93cec commit d92e282Copy full SHA for d92e282
src/TerminalSystemMonitor.jl
@@ -114,6 +114,9 @@ function plot_cpu_memory_utilization(::Type{CPUDevice})
114
return []
115
end
116
memoryusage = memorytotal - memoryfree
117
+ # Sometimes `memoryusage` has negative for the first time.
118
+ # The following line ensures `memoryusage` should be non-negative.
119
+ memoryusage = _relu(memoryusage)
120
memorytotal = round(memorytotal)
121
122
seconds = floor(Int, Sys.uptime())
0 commit comments