Message from discussion
Illegal modulus zero error
MIME-Version: 1.0
Received: by 10.151.106.7 with SMTP id i7mr229784ybm.4.1226879862422; Sun, 16
Nov 2008 15:57:42 -0800 (PST)
Date: Sun, 16 Nov 2008 15:57:42 -0800 (PST)
In-Reply-To: <314a07e1-e993-4c68-8c0a-85046534f952@c36g2000prc.googlegroups.com>
X-IP: 131.181.155.53
References: <314a07e1-e993-4c68-8c0a-85046534f952@c36g2000prc.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.4)
Gecko/2008102920 Firefox/3.0.4,gzip(gfe),gzip(gfe)
Message-ID: <699af97f-15be-43bf-812b-1badcd26bb4f@v5g2000prm.googlegroups.com>
Subject: Re: Illegal modulus zero error
From: Guy <guy.knig...@gmail.com>
To: IRStats Discuss <irstats-discuss@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Ok, I solved that problem. Looks like it happens when there aren't any
stats (or not enough imported) in the database. It probably shouldn't
be crashing if that's the case, though.
On Nov 10, 3:09=A0pm, Guy <guy.knig...@gmail.com> wrote:
> Hi,
>
> I get this error when I try to view the monthly downloads graph:
>
> Illegal modulus zero at /usr/local/irstats/var/www/irstats/lib/IRStats/
> Visualisation/Graph/Bar.pm line 49.\n, referer:http://dev-www.eprints.qut=
.edu.au/irstats.cgi
>
> The line in question is:
>
> push @labels, "{v:".$i.", label:".quote_javascript($x_labels[$i])."}"
> if ($i % $tick_every) =3D=3D 0;
>
> Thanks,
> Guy
>
> Guy Knights
> Computer Systems Officer
> Library Systems, QUT
> Phone: (07) 3138 3910