Customize the log out

This commit is contained in:
Dominik Werder
2024-07-03 10:20:39 +02:00
parent 21259e6591
commit 584d977675
15 changed files with 329 additions and 103 deletions

View File

@@ -108,15 +108,15 @@ fn decide_best_matching_index(range: (TsMs, TsMs), rows: &[TsMs]) -> Result<usiz
Duration::from_millis(0)
} else if x.0 <= range.0 {
if x.1 >= range.1 {
Duration::from_millis((range.1.clone() - range.0.clone()).to_u64())
Duration::from_millis((range.1.clone() - range.0.clone()).ms())
} else {
Duration::from_millis((x.1.clone() - range.0.clone()).to_u64())
Duration::from_millis((x.1.clone() - range.0.clone()).ms())
}
} else {
if x.1 >= range.1 {
Duration::from_millis((range.1.clone() - x.0.clone()).to_u64())
Duration::from_millis((range.1.clone() - x.0.clone()).ms())
} else {
Duration::from_millis((x.1.clone() - x.0.clone()).to_u64())
Duration::from_millis((x.1.clone() - x.0.clone()).ms())
}
};
dur