This commit is contained in:
weisd
2025-04-02 14:13:29 +08:00
parent 66cca1f7bc
commit cb82b0aac8
3 changed files with 64 additions and 4 deletions
+5
View File
@@ -163,6 +163,11 @@ impl SetDisks {
disks
}
pub async fn get_online_disks_with_healing(&self, incl_healing: bool) -> (Vec<DiskStore>, bool) {
let (disks, _, healing) = self.get_online_disks_with_healing_and_info(incl_healing).await;
(disks, healing > 0)
}
pub async fn get_online_disks_with_healing_and_info(&self, incl_healing: bool) -> (Vec<DiskStore>, Vec<DiskInfo>, usize) {
let mut disks = self.get_disks_internal().await;