From 1ddfaaf8fa21cc3bebc0d98b0961690fc27e6e87 Mon Sep 17 00:00:00 2001 From: oster Date: Sun, 28 May 2000 03:42:23 +0000 Subject: Umm.. Complete is not equal to 'left to do'. Fix the math. --- sys/dev/raidframe/rf_reconstruct.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c index 2f0c46fc6a6..b98620c6f80 100644 --- a/sys/dev/raidframe/rf_reconstruct.c +++ b/sys/dev/raidframe/rf_reconstruct.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_reconstruct.c,v 1.23 2000/05/28 00:48:30 oster Exp $ */ +/* $NetBSD: rf_reconstruct.c,v 1.24 2000/05/28 03:42:23 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -699,10 +699,11 @@ rf_ContinueReconstructFailedDisk(reconDesc) if (ProcessReconEvent(raidPtr, row, event)) reconDesc->numDisksDone++; - raidPtr->reconControl[row]->numRUsComplete = - rf_UnitsLeftToReconstruct(mapPtr); raidPtr->reconControl[row]->numRUsTotal = mapPtr->totalRUs; + raidPtr->reconControl[row]->numRUsComplete = + mapPtr->totalRUs - + rf_UnitsLeftToReconstruct(mapPtr); raidPtr->reconControl[row]->percentComplete = 100 - (raidPtr->reconControl[row]->numRUsComplete * 100 / raidPtr->reconControl[row]->numRUsTotal); -- cgit