mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 15:16:21 +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 {
|
||||
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((_, 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,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user