diff --git a/templates/freemem.epp b/templates/freemem.epp index 24054bf487a7c61b62e7c4d82f5b758906119c3e..055ba603c536bcd13387e678633c338dac7f805d 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 * " ",