Update test.sh
This commit is contained in:
8
test.sh
8
test.sh
@@ -21,13 +21,9 @@ fi
|
||||
|
||||
|
||||
declare -i timediff
|
||||
|
||||
errtime=$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
|
||||
ctime=`date +%s`
|
||||
timediff=`date +%s`-$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
|
||||
errtime=`date +%s`-$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
|
||||
echo $errtime
|
||||
echo `date +%s`
|
||||
echo $timediff
|
||||
|
||||
# if [ "" -gt "$timeout" ]; then
|
||||
# echo 'yes'
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user