Bug#286074: marked as forwarded (eximstats: uses message count as data for the "volume" charts)

Debian Bug Tracking System owner@bugs.debian.org
Fri, 17 Dec 2004 05:18:08 -0800


Your message dated Fri, 17 Dec 2004 14:03:16 +0100
with message-id <20041217130316.GA2874@laptopasus.logic.univie.ac.at>
has caused the Debian Bug report #286074,
regarding eximstats: uses message count as data for the "volume" charts
to be marked as having been forwarded to the upstream software
author(s) exim-users@exim.org.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

---------------------------------------
Received: (at 286074-forwarded) by bugs.debian.org; 17 Dec 2004 13:03:19 +0000
>From eximusers@downhill.at.eu.org Fri Dec 17 05:03:19 2004
Return-path: <eximusers@downhill.at.eu.org>
Received: from server.logic.univie.ac.at [131.130.190.41] ([HPUDP5iMiedkR7vR2NH2orqxYkXgEjjs])
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CfHlP-0002Xr-00; Fri, 17 Dec 2004 05:03:19 -0800
Received: from [131.130.190.61] (helo=labtopasus.logic.univie.ac.at ident=[n9XNtlrGbzHT4ktHw0SCkbbDl+TXzcFe])
	by server.logic.univie.ac.at with esmtp (Exim 4.34)
	id 1CfHlM-0001ov-K9; Fri, 17 Dec 2004 14:03:16 +0100
Received: from andreas by labtopasus.logic.univie.ac.at with local (Exim 4.34)
	id 1CfHlM-0000mk-E5; Fri, 17 Dec 2004 14:03:16 +0100
Date: Fri, 17 Dec 2004 14:03:16 +0100
From: Andreas Metzler <eximusers@downhill.at.eu.org>
To: exim-users@exim.org
Cc: Wouter Verhelst <wouter@debian.org>, 286074-forwarded@bugs.debian.org
Subject: Re: Bug#286074: eximstats: uses message count as data for the "volume" charts
Message-ID: <20041217130316.GA2874@laptopasus.logic.univie.ac.at>
References: <E1CfHRb-0003ea-9L@country.nixsys.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1CfHRb-0003ea-9L@country.nixsys.be>
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 286074-forwarded@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

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
     {
---------------------------------