Fix contatore rebuild post-aggiornamento 2.8

This commit is contained in:
2026-04-09 09:32:00 +02:00
parent f354595954
commit 7afbfe0593
+2
View File
@@ -3680,6 +3680,7 @@ $ rm /mnt/verifica.txt
state.disks.forEach(d=>{ if(d.state===DiskState.REBUILDING){d.state=DiskState.OK;d.progress=0;d.smart.realloc=0;d.smart.pending=0;d.smart.crc=0;d.smart.temp=33;} }); state.disks.forEach(d=>{ if(d.state===DiskState.REBUILDING){d.state=DiskState.OK;d.progress=0;d.smart.realloc=0;d.smart.pending=0;d.smart.crc=0;d.smart.temp=33;} });
pushDmesg("info","md0: rebuild completed"); pushDmesg("info","md0: rebuild completed");
termPrint("mdadm: rebuild completato.","ok"); termPrint("mdadm: rebuild completato.","ok");
state.rebuildCount+=1;
if(state.scenario.name&&!state.scenario.checkpoints.ok&&volumeStatus()===VolState.OK){ state.scenario.checkpoints.ok=true; addScore(8,"(scenario) array OK."); } if(state.scenario.name&&!state.scenario.checkpoints.ok&&volumeStatus()===VolState.OK){ state.scenario.checkpoints.ok=true; addScore(8,"(scenario) array OK."); }
clearInterval(rebuildTimer);rebuildTimer=null; clearInterval(rebuildTimer);rebuildTimer=null;
} }
@@ -3865,6 +3866,7 @@ $ rm /mnt/verifica.txt
} }
function render(){ function render(){
pillRebuildCountEl.textContent=state.rebuildCount;
pillArrayEl.textContent=state.arrayName; pillArrayEl.textContent=state.arrayName;
const n=state.disks.length,L=state.raidLevel,sizeGB=state.diskSizeGB; const n=state.disks.length,L=state.raidLevel,sizeGB=state.diskSizeGB;
capValueEl.textContent=fmtGB(capacityGB(L,n,sizeGB)); capValueEl.textContent=fmtGB(capacityGB(L,n,sizeGB));