Skip to content
Permalink
Browse files

fix(monitor): fix querydelay not delaying (#2406)

Co-authored-by: Christian Birk <chris.h3o66@gmail.com>
  • Loading branch information...
h3o66 authored and dgibbs64 committed Jun 22, 2019
1 parent 66a2605 commit 4cc300ba7fe65a15bee29f28e8a25d06d52fb1e5
Showing with 1 addition and 1 deletion.
  1. +1 −1 lgsm/functions/command_monitor.sh
@@ -18,7 +18,7 @@ for queryattempt in {1..5}; do
fn_print_dots "Querying port: ${querymethod}: ${ip}:${queryport} : ${totalseconds}/${queryattempt}: "
fn_print_querying_eol
fn_script_log_info "Querying port: ${querymethod}: ${ip}:${queryport} : ${queryattempt} : QUERYING"
if [ "$(cat "${rootdir}/${lockselfname}")" -lt "$(date "+%s" -d "${querydelay} mins ago")" ]; then
if [ "$(cat "${rootdir}/${lockselfname}")" -gt "$(date "+%s" -d "${querydelay} mins ago")" ]; then
fn_print_ok "Querying port: ${querymethod}: ${ip}:${queryport} : ${totalseconds}/${queryattempt}: "
fn_print_delay_eol
fn_script_log_info "Querying port: ${querymethod}: ${ip}:${queryport} : ${queryattempt} : DELAY"

0 comments on commit 4cc300b

Please sign in to comment.
You can’t perform that action at this time.