Add sums per month to HostStats.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
ea493f3da0
commit
c6346470f9
2 changed files with 9 additions and 1 deletions
|
|
@ -107,7 +107,9 @@ if ($OptNames) {
|
|||
}
|
||||
|
||||
### build SQL WHERE clause
|
||||
my $ExcludeSums = $OptSums ? '' : sprintf("%s != 'ALL'",$OptType);
|
||||
my $SQLWhereClause = SQLBuildClause('where',$SQLWherePeriod,$SQLWhereNames,
|
||||
$ExcludeSums,
|
||||
&SQLSetBounds('default',$LowBound,$UppBound));
|
||||
|
||||
### get sort order and build SQL 'ORDER BY' clause
|
||||
|
|
@ -304,6 +306,11 @@ example
|
|||
|
||||
eternal-september.org:solani.org:*.inka.de
|
||||
|
||||
=item B<-s>, B<--sums|--nosums> (sum per month)
|
||||
|
||||
Include a "virtual" host named "ALL" for every month in output,
|
||||
containing the sum of all detected hosts for that month.
|
||||
|
||||
=item B<-r>, B<--report> I<default|sums>
|
||||
|
||||
Choose the report type: I<default> or I<sums>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue