Skip to content

Commit

Permalink
dump monitoring every 5 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 11, 2023
1 parent 2749744 commit 7502337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ while [ $(jobs -r -p | wc -l) -gt 0 ] ; do
sleep 1
CTIME=$(date +%s)
let LOG_GAP=${CTIME}-${LOG_CHECK}
if [ $LOG_GAP -lt 5 ] ; then continue ; fi
if [ $LOG_GAP -lt 300 ] ; then continue ; fi
LOG_CHECK=${CTIME}
monitor >> ${MONITOR_COMMAND_LOG} 2>&1
done
Expand Down

0 comments on commit 7502337

Please sign in to comment.