From: Siraaj Khandkar Date: Mon, 2 Nov 2020 21:53:10 +0000 (-0500) Subject: Fix mem to accumulate instead of setting last X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=02f10c8b6438555ddc637e5f6bda840e0b6f06ae Fix mem to accumulate instead of setting last --- 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 {