Update dsmon.sh
This commit is contained in:
12
dsmon.sh
12
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(){
|
||||
|
||||
Reference in New Issue
Block a user