From 02f10c8b6438555ddc637e5f6bda840e0b6f06ae Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 2 Nov 2020 16:53:10 -0500 Subject: [PATCH] Fix mem to accumulate instead of setting last --- home/lib/login_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index c34263f..2577531 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -521,7 +521,7 @@ motd() { n = split(cmd, path, "/") # _may_ be a path proc = path[n] total += rss - by_proc[proc] = rss + by_proc[proc] += rss } END { -- 2.20.1