ajust check sync status
@@ -246,20 +246,20 @@ function sync_status() {
local wait_sec=0
while [ $count -gt 0 ]; do
sync_status=$(${1} net is_sync)
+ if [ "${sync_status}" = "true" ]; then
+ echo "=========== query clock sync status========== "
+ sync_status=$(${1} net is_clock_sync)
if [ "${sync_status}" = "true" ]; then
break
fi
+ fi
((count--))
wait_sec=$((wait_sec + 1))
sleep 1
done
echo "sync wait ${wait_sec} s"
- echo "=========== query clock sync status========== "
- sync_status=$(${1} net is_clock_sync)
- if [ "${sync_status}" = "false" ]; then
- exit 1
- fi
+
}
function sync() {
