mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Correct logic for detecting if the bandwidth test is already running. compare_exchange returns the CURRENT value, not the NEW value.
This commit is contained in:
@@ -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\""])
|
||||
|
||||
Reference in New Issue
Block a user