소스 검색

Healthcheck correction

Vadim Surkov 6 년 전
부모
커밋
0e8e2d4d26
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      healthcheck.sh

+ 2 - 2
healthcheck.sh

@@ -2,8 +2,8 @@
 
 containerstart=`stat -c %Z /proc/1`
 curtime=`date +%s`
-if [[ $(($containerstart-$curtime)) -le "180" ]]; then
-    echo "0"
+if (( curtime-containerstart < 180 )); then
+    echo "Container start period, returning 0"
     exit 0
 fi