]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] rspamd_stats: add actions percentage to summary
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 8 Dec 2016 14:59:37 +0000 (17:59 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 8 Dec 2016 14:59:37 +0000 (17:59 +0300)
utils/rspamd_stats.pl

index b845964ff922eb261353c15f90e28cc4a07d75ba..aa0a2c45ff2c345b664e9811923cadab96eacc32 100644 (file)
@@ -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,