@@ -31,7 +31,7 @@ else
unset IFS
for i in ${!sorted[*]}
do
- if [[ ${last_node_oct} -eq ${sorted[i]} ]];then time_to_dead=$((i*180+curtime));echo "${time_to_dead}" > /tmp/dead;fi
+ if [[ ${last_node_oct} -eq ${sorted[i]} ]];then time_to_dead=$((i*180+curtime));echo "${time_to_dead}" > /tmp/dead;exit 0;fi
done
fi