Bug#286074: eximstats: uses message count as data for the "volume" charts

Wouter Verhelst Wouter Verhelst <wouter@debian.org>, 286074@bugs.debian.org
Fri, 17 Dec 2004 13:42:51 +0100


Package: exim4-base
Version: 4.34-9
Severity: normal
Tags: patch

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
     {

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9
Locale: LANG=nl_BE@euro, LC_CTYPE=nl_BE@euro (charmap=ISO-8859-15)

Versions of packages exim4-base depends on:
ii  adduser                     3.59         Add and remove users and groups
ii  cron                        3.0pl1-86    management of regular background p
ii  debconf [debconf-2.0]       1.4.41       Debian configuration management sy
ii  exim4-config [exim4-config- 4.34-9       Debian configuration for exim4
ii  libc6                       2.3.2.ds1-19 GNU C Library: Shared libraries an
ii  libdb3                      3.2.9-20     Berkeley v3 Database Libraries [ru
ii  netbase                     4.19         Basic TCP/IP networking system
ii  passwd                      1:4.0.3-30.4 Change and administer password and

-- debconf information excluded