diff --git a/simulatore.html b/simulatore.html index cf4cf72..cdfb435 100644 --- a/simulatore.html +++ b/simulatore.html @@ -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;} }); pushDmesg("info","md0: rebuild completed"); 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."); } clearInterval(rebuildTimer);rebuildTimer=null; } @@ -3865,6 +3866,7 @@ $ rm /mnt/verifica.txt } function render(){ + pillRebuildCountEl.textContent=state.rebuildCount; pillArrayEl.textContent=state.arrayName; const n=state.disks.length,L=state.raidLevel,sizeGB=state.diskSizeGB; capValueEl.textContent=fmtGB(capacityGB(L,n,sizeGB));