Skip to content

Commit

Permalink
innreport: Recognize the filtered log in cnfsstat
Browse files Browse the repository at this point in the history
Also, the filtered parameter in storage.conf is case-insensitive.

see #38
  • Loading branch information
Julien-Elie committed Feb 11, 2024
1 parent 27f25f1 commit 8a016f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontends/cnfsstat.in
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ sub read_storageconf {
$key{'SIZE'} =~ s/,/:/;
$key{'FILTERED'}
= defined $key{'FILTERED'}
? $key{'FILTERED'} =~ /^(true|yes|on)$/
? $key{'FILTERED'} =~ /^(true|yes|on)$/i
? 1
: 0
: 0;
Expand Down
1 change: 1 addition & 0 deletions scripts/innreport_inn.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2226,6 +2226,7 @@ sub collect($$$$$$) {
if (
$left =~ m|^Class\ (\S+)\ for\ groups\ matching\ \S+
(\ article\ size\ min/max:\ \d+/\d+)?
(?:,\ filtered\ only)?
\ Buffer\ (\S+),
\ len:\ ([\d.]+)\s+Mbytes,
\ used:\ ([\d.]+)\ Mbytes\ \(\s*[\d.]+%\)
Expand Down

0 comments on commit 8a016f8

Please sign in to comment.