Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Umm.. Complete is not equal to 'left to do...



details:   https://anonhg.NetBSD.org/src/rev/9ec26ee89693
branches:  trunk
changeset: 486745:9ec26ee89693
user:      oster <oster%NetBSD.org@localhost>
date:      Sun May 28 03:42:23 2000 +0000

description:
Umm.. Complete is not equal to 'left to do'.  Fix the math.

diffstat:

 sys/dev/raidframe/rf_reconstruct.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r e0d781bb1618 -r 9ec26ee89693 sys/dev/raidframe/rf_reconstruct.c
--- a/sys/dev/raidframe/rf_reconstruct.c        Sun May 28 03:00:31 2000 +0000
+++ b/sys/dev/raidframe/rf_reconstruct.c        Sun May 28 03:42:23 2000 +0000
@@ -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 @@
 
                        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);



Home | Main Index | Thread Index | Old Index