diff --git a/check_memory b/check_memory index ffd36321b76fdb979d80841e4fe490c171b0503b..293822bcef265b034292b4e456dc153805538967 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