chore: debug speed limit selection mismatch

This commit is contained in:
spinline
2026-02-04 17:37:03 +03:00
parent 978ca705a6
commit 0ac563bc6f

View File

@@ -131,6 +131,14 @@ pub fn StatusBar() -> impl IntoView {
limits.clone().into_iter().map(|(val, label)| { limits.clone().into_iter().map(|(val, label)| {
let is_active = move || { let is_active = move || {
let current = stats.get().down_limit.unwrap_or(0); let current = stats.get().down_limit.unwrap_or(0);
if down_menu_open.get() {
logging::log!("Down Active Check: current={} (i64), val={} (i64), diff={}, match={}",
current,
val,
(current - val).abs(),
(current - val).abs() < 1024
);
}
(current - val).abs() < 1024 (current - val).abs() < 1024
}; };
view! { view! {