diff options
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_reconstruct.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |
