Allow peer SIBLING_HIT to be added to HIT count. Thanks to Maher Kassem forn the patch.

This commit is contained in:
Darold Gilles 2013-03-27 21:34:22 +01:00
parent 24c249723b
commit c960a6e86f
1 changed files with 2 additions and 2 deletions

View File

@ -212,8 +212,8 @@ sub parseFile
$self->{begin_time} = $time;
print STDERR "START TIME: ", strftime("%a %b %e %H:%M:%S %Y", localtime($time)), "\n" if (!$self->{QuietMode});
}
# Only store (HIT|UNMODIFIED)/MISS status and peer CD_SIBLING_HIT/...
if ( ($code =~ m#(HIT|UNMODIFIED)/#) || ($self->{SiblingHit} && ($line =~ / CD_SIBLING_HIT/)) ) {
# Only store (HIT|UNMODIFIED)/MISS status and peer CD_SIBLING_HIT/ aswell as peer SIBLING_HIT/...
if ( ($code =~ m#(HIT|UNMODIFIED)/#) || ($self->{SiblingHit} && ($line =~ / (CD_)?SIBLING_HIT/)) ) {
$code = 'HIT';
} elsif ($code =~ m#MISS|MODIFIED/#) {
$code = 'MISS';