Skip to content

Commit 4cc300b

Browse files
h3o66dgibbs64
authored andcommitted
fix(monitor): fix querydelay not delaying (#2406)
Co-authored-by: Christian Birk <[email protected]>
1 parent 66a2605 commit 4cc300b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/functions/command_monitor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for queryattempt in {1..5}; do
1818
fn_print_dots "Querying port: ${querymethod}: ${ip}:${queryport} : ${totalseconds}/${queryattempt}: "
1919
fn_print_querying_eol
2020
fn_script_log_info "Querying port: ${querymethod}: ${ip}:${queryport} : ${queryattempt} : QUERYING"
21-
if [ "$(cat "${rootdir}/${lockselfname}")" -lt "$(date "+%s" -d "${querydelay} mins ago")" ]; then
21+
if [ "$(cat "${rootdir}/${lockselfname}")" -gt "$(date "+%s" -d "${querydelay} mins ago")" ]; then
2222
fn_print_ok "Querying port: ${querymethod}: ${ip}:${queryport} : ${totalseconds}/${queryattempt}: "
2323
fn_print_delay_eol
2424
fn_script_log_info "Querying port: ${querymethod}: ${ip}:${queryport} : ${queryattempt} : DELAY"

0 commit comments

Comments
 (0)