vos-increment-offline-count-20090218
authorPeter Tripician <tripicia@cmf.nrl.navy.mil>
Wed, 18 Feb 2009 17:27:59 +0000 (17:27 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 18 Feb 2009 17:27:59 +0000 (17:27 +0000)
LICENSE IPL10
FIXES 124333

increment offline volume count, not pointer to it

src/volser/vos.c

index f75913d..cff091d 100644 (file)
@@ -507,7 +507,7 @@ DisplayFormat(pntr, server, part, totalOK, totalNotOK, totalBusy, fast,
                *totalOK += 1;
            } else {
                fprintf(STDOUT, "Off-line");
-               *totalNotOK++;
+               *totalNotOK += 1;
            }
            if (pntr->needsSalvaged == 1)
                fprintf(STDOUT, "**needs salvage**");