Commit da719dff authored by mdj33's avatar mdj33 Committed by vipwzw

ajust check sync status

parent c5aefff8
......@@ -247,7 +247,11 @@ function sync_status() {
while [ $count -gt 0 ]; do
sync_status=$(${1} net is_sync)
if [ "${sync_status}" = "true" ]; then
break
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))
......@@ -255,11 +259,7 @@ function sync_status() {
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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment