Better memory display

This commit is contained in:
Lucien Cartier-Tilet 2021-06-18 19:29:06 +02:00
parent d35516a354
commit 718663f50d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 7 additions and 8 deletions

View File

@ -483,7 +483,7 @@ displayed."
(concat (s-pad-right text-padding "." type)
": "
(eshell-info-banner--progress-bar bar-length percentage)
(format " %6s / %-6s (%3s%%)"
(format " %6s / %-6s (%3s%%)\n"
(file-size-human-readable used)
(file-size-human-readable total)
(eshell-info-banner--with-face
@ -504,13 +504,12 @@ TYPE......: [=========] XXG / XXG (XX%)
progress bar.
`BAR-LENGTH': the length of the progress bar."
(concat (mapconcat (lambda (mem)
(eshell-info-banner--memory-to-string (nth 0 mem) (nth 1 mem)
(nth 2 mem) text-padding
bar-length))
(eshell-info-banner--get-memory)
"\n")
"\n"))
(mapconcat (lambda (mem)
(eshell-info-banner--memory-to-string (nth 0 mem) (nth 1 mem)
(nth 2 mem) text-padding
bar-length))
(eshell-info-banner--get-memory)
""))
; Display information ;;;;;;;;;;;;;;;;;