]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1545 about fix in manual_prune.pl script with large number of volumes
authorEric Bollengier <eric@baculasystems.com>
Wed, 30 Dec 2015 08:57:16 +0000 (09:57 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 6 Jan 2016 09:50:32 +0000 (10:50 +0100)
bacula/scripts/manual_prune.pl

index 69d7f1dbee59f0771c56afb6f752673f01118cdd..d01dbbfd1e64ab2ef24c196c3567bf6b6f800bb2 100755 (executable)
@@ -216,13 +216,13 @@ quit
     while (my $l = <FP>)
     {
                   # |        1 |   TestVolume001 | Used
-        if ($l =~ /^\s*\|\s*\d+\s*\|\s*([\w\d-]+)\s*\|\s*Used/) {
+        if ($l =~ /^\s*\|\s*[\d,]+\s*\|\s*([\w\d-]+)\s*\|\s*Used/) {
             push @vol, $1;
         }
-        if ($l =~ /^\s*\|\s*\d+\s*\|\s*([\w\d-]+)\s*\|\s*Full/) {
+        if ($l =~ /^\s*\|\s*[\d,]+\s*\|\s*([\w\d-]+)\s*\|\s*Full/) {
             push @vol, $1;
         }
-        if ($l =~ /^\s*\|\s*\d+\s*\|\s*([\w\d-]+)\s*\|\s*Purged/) {
+        if ($l =~ /^\s*\|\s*[\d,]+\s*\|\s*([\w\d-]+)\s*\|\s*Purged/) {
             push @vol_purged, $1;
         }
     }