diff --git a/dsmon.sh b/dsmon.sh index 497453b..e1f0b82 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -80,7 +80,7 @@ RUN(){ } CHECK(){ - [ "${1}" != "report" ] && start=`date +%s` + start=`date +%s` declare -A host_ip declare -A host_name @@ -235,12 +235,10 @@ CHECK(){ done - if [ "${1}" != "report" ]; then - end=`date +%s` - runtime=$((end-start)) - echo - echo "runtime: ${runtime}" - fi + end=`date +%s` + runtime=$((end-start)) + echo + echo "runtime: ${runtime}" } SETUPSSH(){