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:
parent
798e65b107
commit
23736eaab7
@ -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\""])
|
||||
|
Loading…
Reference in New Issue
Block a user