Commit 30fd60d5 authored by Philip Carns's avatar Philip Carns

fixe regex to match version number in fsstats-merge.pl


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@223 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 84734408
...@@ -202,7 +202,7 @@ sub add_summary ...@@ -202,7 +202,7 @@ sub add_summary
while($line = <$file>) while($line = <$file>)
{ {
if ($line =~ /Generated by.*fsstats v(.*)[ )]/) { $version = $1; } if ($line =~ /Generated by.*fsstats v([\d\.]+)/) { $version = $1; }
if ($line =~ /^skipped special files,(.*)/) {$special_files += $1;} if ($line =~ /^skipped special files,(.*)/) {$special_files += $1;}
if ($line =~ /^skipped duplicate hardlinks,(.*)/) {$skipped_hlink += $1;} if ($line =~ /^skipped duplicate hardlinks,(.*)/) {$skipped_hlink += $1;}
if ($line =~ /^skipped snapshot dirs,(.*)/) {$skipped_snapshot += $1;} if ($line =~ /^skipped snapshot dirs,(.*)/) {$skipped_snapshot += $1;}
...@@ -215,6 +215,7 @@ sub add_summary ...@@ -215,6 +215,7 @@ sub add_summary
if ($line =~ /^absolute symlink target pct,(.*)/) {$slink_absolute_pct = $1;} if ($line =~ /^absolute symlink target pct,(.*)/) {$slink_absolute_pct = $1;}
} }
print("$version\n");
if($version ne "1.4.5") if($version ne "1.4.5")
{ {
die("Error: csv file not generated by fsstats v1.4.5.\n"); die("Error: csv file not generated by fsstats v1.4.5.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment