From: Alan J. Pippin <ajp@pippins.net>
Date: Thu, 29 Jan 2009 14:39:50 +0000 (-0700)
Subject: Added missing anchor to backup pool name filter
X-Git-Url: http://git.pippins.net/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/images/static/%7Bupdate_day%7D?a=commitdiff_plain;h=e8226545869d10fdc7205de2890b6d582f201f7d;p=zfs-ubuntu%2F.git

Added missing anchor to backup pool name filter
---

diff --git a/zfs-log-parser b/zfs-log-parser
index 94e4490..f13c2a0 100755
--- a/zfs-log-parser
+++ b/zfs-log-parser
@@ -117,7 +117,7 @@ sub parse_snapshot_totals_logfile {
 	elsif(($in_totals == 1) && ($line =~ /(\S+)\s+([\d\.]*)(\w+)\s+(\d+)/)) {
 	    $filesystem = $1; $data = $2; $size = $3; $num_snaps = $4;
 	    if($filesystem =~ /Snapshots/ || $filesystem =~ /Total/) { next; }
-	    if($filesystem =~ /$backup_pool/) { next; }
+	    if($filesystem =~ /^$backup_pool/) { next; }
 	    if(length($filesystem) > $maxlen) { $maxlen = length($filesystem); }
 	    if($size =~ /K/i) { $data = $data * $kilo; }
 	    if($size =~ /M/i) { $data = $data * $mega; }