Showing 1 changed files with 1 additions and 1 deletions
+1 -1
monitoring
... ...
@@ -56,7 +56,7 @@ function _load () {
56 56
 function _turn () {
57 57
     test -n "$1" && [[ $1 =~ [0-9]+ ]] || return 1
58 58
     echo ${FUNCNAME[1]} >> $monitoring_turns
59
-    test $(( $(grep -c ${FUNCNAME[1]} $monitoring_turns) % $1 )) -eq 0 && sed -i "/${FUNCNAME[1]}/d" $monitoring_turns
59
+    test $(( $(grep -c ${FUNCNAME[1]} $monitoring_turns) % $1 )) -eq 0 && sed -i "/^${FUNCNAME[1]}$/d" $monitoring_turns
60 60
 }
61 61
 
62 62
 function _do_tests () {