Update test.sh
This commit is contained in:
2
test.sh
2
test.sh
@@ -28,7 +28,7 @@ CHECK_HOST(){
|
|||||||
|
|
||||||
errtime=$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
|
errtime=$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
|
||||||
ctime=`date +%s`
|
ctime=`date +%s`
|
||||||
timediff=$(date +%s)-$errtime
|
timediff=$ctime-$errtime
|
||||||
echo $errtime
|
echo $errtime
|
||||||
echo `date +%s`
|
echo `date +%s`
|
||||||
echo $timediff
|
echo $timediff
|
||||||
|
|||||||
Reference in New Issue
Block a user