From 8ab71eeea63fd3a8844a862932bbf73dc3579881 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Fri, 28 Jul 2023 13:29:47 +0200 Subject: [PATCH] memory: update help page --- check_memory | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/check_memory b/check_memory index ffd3632..293822b 100755 --- a/check_memory +++ b/check_memory @@ -25,13 +25,13 @@ # 2022-03-09 v1.6 <axel.hahn@iml.unibe.ch> show most ram intensive processes # 2022-03-10 v1.7 <axel.hahn@iml.unibe.ch> add cli param -p; update help # 2023-02-13 v1.8 <axel.hahn@unibe.ch> shell fixes +# 2023-07-28 v1.9 <axel.hahn@unibe.ch> update help page # ====================================================================== . "$(dirname $0)/inc_pluginfunctions" -self_APPNAME=$( basename $0 | tr [:lower:] [:upper:] ) -self_APPVERSION=1.8 +self_APPVERSION=1.9 # ---------------------------------------------------------------------- # FUNCTIONS @@ -44,16 +44,11 @@ function getMemvalue(){ echo $( grep "^$1:" /proc/meminfo | awk '{ print $2 }' ) / 1024 | bc } +# show help text function showHelp(){ + local _self; _self=$(basename $0) cat <<EOF -______________________________________________________________________ - -$self_APPNAME -v$self_APPVERSION - -(c) Institute for Medical Education - University of Bern -Licence: GNU GPL 3 -______________________________________________________________________ +$( ph.showImlHelpHeader ) Check memory usage incl. free, used and total memory. On higher memory usage the process table with top 5 top consumers will -- GitLab