Fix mem to accumulate instead of setting last
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 2 Nov 2020 21:53:10 +0000 (16:53 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 2 Nov 2020 21:53:10 +0000 (16:53 -0500)
home/lib/login_functions.sh

index c34263f..2577531 100644 (file)
@@ -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 {
This page took 0.026955 seconds and 4 git commands to generate.