Add sums per month to HostStats.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2025-05-11 14:32:09 +02:00
parent ea493f3da0
commit c6346470f9
2 changed files with 9 additions and 1 deletions

View file

@ -350,6 +350,7 @@ sub HostStats {
# count host
if ($Host) {
$Postings{$Host}++;
$Postings{'ALL'}++;
} else {
&Bleat(2,sprintf("%s FAILED", $Header{'message-id'})) if !$Host;
}
@ -438,7 +439,7 @@ override that default through the B<--groupsdb> option.
B<gatherstats> will examine Injection-Info:, X-Trace: and Path:
headers and try to normalize them. Groups not in I<TLH> will be
ignored.
ignored. The sum of all detected hosts will also saved for each month.
Data is written to I<DBTableHosts> (see L<doc/INSTALL>); you can
override that default through the B<--hostsdb> option.