From 23736eaab7b9211fdd90d2ef6694dd906f660baa Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Thu, 9 Mar 2023 14:25:43 +0000 Subject: [PATCH] Correct logic for detecting if the bandwidth test is already running. compare_exchange returns the CURRENT value, not the NEW value. --- src/rust/lqosd/src/lqos_daht_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/lqosd/src/lqos_daht_test.rs b/src/rust/lqosd/src/lqos_daht_test.rs index e20b6961..37a25d9c 100644 --- a/src/rust/lqosd/src/lqos_daht_test.rs +++ b/src/rust/lqosd/src/lqos_daht_test.rs @@ -11,7 +11,7 @@ pub fn lqos_daht_test() -> BusResponse { true, std::sync::atomic::Ordering::Relaxed, std::sync::atomic::Ordering::Relaxed, - ) == Ok(true) + ) == Ok(false) { let result = Command::new("/bin/ssh") .args(["-t", "lqtest@lqos.taht.net", "\"/home/lqtest/bin/v6vsv4.sh\""])