From 718663f50d72d1da4b4aedc5c7384b3a653ce253 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Fri, 18 Jun 2021 19:29:06 +0200 Subject: [PATCH] Better memory display --- eshell-info-banner.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/eshell-info-banner.el b/eshell-info-banner.el index c8844c2..0d295ff 100644 --- a/eshell-info-banner.el +++ b/eshell-info-banner.el @@ -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 ;;;;;;;;;;;;;;;;;