summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-05-28 03:42:23 +0000
committeroster <oster@NetBSD.org>2000-05-28 03:42:23 +0000
commit1ddfaaf8fa21cc3bebc0d98b0961690fc27e6e87 (patch)
tree795426660e7ec59260caaa96904bf6146fdc17dd /sys/dev/raidframe
parente38b4355e24b69b4bee7b8ee582b81480b512d1b (diff)
Umm.. Complete is not equal to 'left to do'. Fix the math.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_reconstruct.c7
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);