From be0d76f42d8cddf34032cf4dc6013c0ec8ac5519 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Sun, 20 Dec 2020 17:46:11 +0000
Subject: [PATCH] Fix output width of freemem.

---
 templates/freemem.epp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/freemem.epp b/templates/freemem.epp
index 24054bf..055ba60 100755
--- a/templates/freemem.epp
+++ b/templates/freemem.epp
@@ -16,9 +16,9 @@ with open("/proc/meminfo") as f:
             usedGB, totalGB))
 
     part = used / total
-    width = 80
-    filled = int(80 * part)
-    empty = 80 - filled
+    width = 80 - 7
+    filled = int(width * part)
+    empty = width - filled
     print ( "[{}{}] {:3}%".format(
         filled * "#",
         empty * " ",
-- 
GitLab