[exim] Re: Bug#286074: eximstats: uses message count as data…

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
A: exim-users
CC: 286074-forwarded, Wouter Verhelst
Assumpte: [exim] Re: Bug#286074: eximstats: uses message count as data for the "volume" charts
Hello,
This is <http://bugs.debian.org/286074> submitted by Wouter Verhelst,
the report is aganst 4.34, but eximstats in 4.43 is unchanged.
        thanks, cu andreas


---------------------------------
Hi,

When using eximstats with the -html and -charts options, it produces a
number of charts, including pie charts for the "Top 50 host destinations
by (volume|message count)" tables.

For the message count pie chart, it orders the pies by message count and
makes them thicker or smaller depending on the number of messages. One
would expect that for the volume pie chart, it would work similar --
that it would order pies by volume, and make them thicker or smaller
depending on the volume. However, it does not do that; it correctly
orders them, but uses the message count to determine the size of a pie.

This patch fixes that behaviour:

--- /usr/sbin/eximstats    2004-12-17 13:36:44.381983753 +0100
+++ eximstats    2004-12-17 13:36:32.708504891 +0100
@@ -1107,7 +1107,7 @@
   if (scalar @chartdatanames < $ntopchart)
     {
     push(@chartdatanames, $key);
-    push(@chartdatavals, $$m_count{$key});
+    push(@chartdatavals, $$m_data{$key});
     }
   else
     {
---------------------------------