From aff201c742199aae8c4429c6f486314209050286 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 2 Jan 2023 14:32:31 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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(){