Skip to content

Commit

Permalink
fix MEM usage
Browse files Browse the repository at this point in the history
  • Loading branch information
inv2004 committed Jan 31, 2023
1 parent 10fc217 commit f734449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ttop/tui.nim
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ proc header(tb: var TerminalBuffer, info: FullInfoRef, hist, cnt: int,
tb.write "|%"
temp(tb, info.temp.cpu, checkCpuTempLimit(info.temp))
tb.setCursorPos(offset, 3)
let memStr = formatS(mi.MemAvailable, mi.MemTotal)
let memStr = formatD(mi.MemAvailable, mi.MemTotal)
let sign = if mi.MemDiff > 0: '+' elif mi.MemDiff == 0: '=' else: '-'
if checkMemLimit(mi):
tb.write bgRed
Expand Down

0 comments on commit f734449

Please sign in to comment.