From 5f579a045bc5f26eb0d57163624f144d485315d8 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Fri, 11 Nov 2022 16:53:00 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index c88e976..4ffdd2d 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -496,7 +496,8 @@ def eternal_oom(argv): def oom_status(): print( - '\r%6.2f / %.2f %%, %6.2f / %.2f GiB' % ( + '\r%s %6.2f / %.2f %%, %6.2f / %.2f GiB' % ( + datetime.datetime.now().isoformat(), oom_mean_cpu() / os.cpu_count() * 100, options.cpu_limit / os.cpu_count() * 100, memory_stats()['mem_used'] / 1024 / 1024,