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