From 7afbfe059366c3c510d02fb584a01e175b0c836a Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Thu, 9 Apr 2026 09:32:00 +0200 Subject: [PATCH] Fix contatore rebuild post-aggiornamento 2.8 --- simulatore.html | 2 ++ 1 file changed, 2 insertions(+) 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));