mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-06-15 14:24:55 +00:00
api: remove redundant guard
Fixes the redundant_guards clippy lint. Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
858744bf3c
commit
883e14ebcb
@ -150,7 +150,7 @@ pub async fn datastore_status(
|
|||||||
if usage_list.len() >= 7 {
|
if usage_list.len() >= 7 {
|
||||||
entry.estimated_full_date = match linear_regression(&time_list, &usage_list) {
|
entry.estimated_full_date = match linear_regression(&time_list, &usage_list) {
|
||||||
Some((a, b)) if b != 0.0 => Some(((1.0 - a) / b).floor() as i64),
|
Some((a, b)) if b != 0.0 => Some(((1.0 - a) / b).floor() as i64),
|
||||||
Some((_, b)) if b == 0.0 => Some(0), // infinite estimate, set to past for gui to detect
|
Some((_, 0.0)) => Some(0), // infinite estimate, set to past for gui to detect
|
||||||
_ => None,
|
_ => None,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user