From eb221ca1af91b8db06629e78ae57b228b562ff16 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 20 Oct 2025 15:15:42 +0200 Subject: [PATCH] unify K output --- chatmaild/src/chatmaild/fsreport.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chatmaild/src/chatmaild/fsreport.py b/chatmaild/src/chatmaild/fsreport.py index cfc78bd5..a233c828 100644 --- a/chatmaild/src/chatmaild/fsreport.py +++ b/chatmaild/src/chatmaild/fsreport.py @@ -33,11 +33,9 @@ def D(timestamp, now=datetime.utcnow().timestamp()): def K(size): - if size < 1000: - return f"{size:6.0f}" - elif size < 10000: + if size < 10000: return f"{size / 1000:5.2f}K" - return f"{int(size / 1000):5.0f}K" + return f"{size / 1000:5.0f}K" def M(size):