SA Bugzilla – Bug 2965
hit-frequencies -x headers are wrong
Last modified: 2004-01-26 14:55:36 UTC
When using the command "hit-frequencies -x", the column headers are missing a "RANK" column header. Example: First header is from "-x", Second header is from "-x -p" OVERALL SPAM HAM S/O SCORE NAME 91714 74113 17601 0.808 0.00 0.00 (all messages) 7431 7429 2 0.999 1.00 3.00 RM_bpt_longwords68a 6596 6595 1 0.999 0.98 1.00 RM_bpt_longwords69a OVERALL% SPAM% HAM% S/O RANK SCORE NAME 91714 74113 17601 0.808 0.00 0.00 (all messages) 100.000 80.8088 19.1912 0.808 0.00 0.00 (all messages as %) 8.102 10.0239 0.0114 0.999 1.00 3.00 RM_bpt_longwords68a 7.192 8.8986 0.0057 0.999 0.98 1.00 RM_bpt_longwords69a Code involved: } elsif ($opt_x) { printf "%7s %7s %7s %6s %6s %s\n", "OVERALL", "SPAM", "HAM", "S/O", "SCORE", "NAME"; printf "%7d %7d %7d %7.3f %6.2f %6.2f (all messages)\n", 2nd and 3rd line should instead be something like: printf "%7s %7s %7s %6s %6s %6s %s\n", "OVERALL", "SPAM", "HAM", "S/O", "RANK", "SCORE", "NAME";
thx -- fixed. I guess we haven't used -x without -p in a while ;)