Skip to content

Commit

Permalink
Merge pull request facebookarchive#60 from NinGoo/master
Browse files Browse the repository at this point in the history
bugfix for flashstat line 255 regexp
  • Loading branch information
mohans committed Mar 23, 2012
2 parents 46eb0a3 + 5f7c348 commit ef37f60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/flashstat
Expand Up @@ -252,7 +252,8 @@ sub get_dmsetup_table{
$line =~ m/cache mode\((\w+)/;
$dmsetup_table{cache_mode} = $1;
}
$line =~ m/(\/\w+\/\w+).*\((\/\w+\/\w+)/;
#$line =~ m/(\/\w+\/\w+).*\((\/\w+\/\w+)/; # bugfix for Issue #1 of https://github.com/NinGoo/flashstat
$line =~ m/(\/[^\s]{1,})\).*\((\/[^\s]{1,})\)/;
$dmsetup_table{ssd_dev} = $1;
$dmsetup_table{disk_dev} = $2;
}
Expand Down

0 comments on commit ef37f60

Please sign in to comment.