diff --git a/test.sh b/test.sh index 0123062..cc8eb85 100755 --- a/test.sh +++ b/test.sh @@ -24,7 +24,7 @@ declare -i timediff errtime=$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down) ctime=`date +%s` -timediff=`date +%s`-$errtime +timediff=`date +%s`-$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down) echo $errtime echo `date +%s` echo $timediff