diff --git a/dsmon.sh b/dsmon.sh index f572708..3988486 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -80,7 +80,8 @@ RUN(){ } CHECK(){ - + start=`date +%s` + declare -A host_ip declare -A host_name declare -A host_limits @@ -104,7 +105,7 @@ CHECK(){ #for hostid in "${!host_ip[@]}"; do for hostname in "${hostnames_sort[@]}"; do hostid=${host_ids[$hostname]} - echo -e "${idsST[Bold]}"; DIVIDER + echo -e "${idsST[Bold]}"; DIVIDER true echo -e "${idsCL[LightCyan]} ${host_name[$hostid]} - Drive Space Check${idsCL[Default]}" DIVIDER; echo -e "${idsST[Reset]}" @@ -194,6 +195,11 @@ CHECK(){ fi done + + end=`date +%s` + runtime=$((end-start)) + echo + echo "runtime: ${runtime}" } SETUPSSH(){