diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-12-08 17:59:37 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-12-08 17:59:37 +0300 |
commit | 5d7b51b19d827064ffd20ae5e235b161261e7f52 (patch) | |
tree | 62db02cde70bfd6656413e97284a9ce881a081ad /utils/rspamd_stats.pl | |
parent | 9eca6f6a7b46e14c18075a59f5ca026dd6590f31 (diff) | |
download | rspamd-5d7b51b19d827064ffd20ae5e235b161261e7f52.tar.gz rspamd-5d7b51b19d827064ffd20ae5e235b161261e7f52.zip |
[Minor] rspamd_stats: add actions percentage to summary
Diffstat (limited to 'utils/rspamd_stats.pl')
-rw-r--r-- | utils/rspamd_stats.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl index b845964ff..aa0a2c45f 100644 --- a/utils/rspamd_stats.pl +++ b/utils/rspamd_stats.pl @@ -173,7 +173,8 @@ printf " [ %s / %s ] ", $timeStamp{'start'}, $timeStamp{'end'} if defined $timeStamp{'start'}; say ''; -printf "%11s: %d\n", $_, $action{$_} for sort keys %action; +printf "%11s: %6.2f%%, %d\n", $_, 100 * $action{$_} / $total, $action{$_} + for sort keys %action; say ''; printf "scan time min/avg/max = %.2f/%.2f/%.2f s ", $scanTime{'min'} / 1000, |