[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Error with disk reporting in web interface
- Subject: RE: [cobalt-users] Error with disk reporting in web interface
- From: "Paul Alcock" <webmgr@xxxxxxxxxxxxxxxxxx>
- Date: Thu Nov 8 18:49:36 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I look into diskUsage.cgi
>
> I replace on the line 204 :
>
> my $sitePercent = ($siteTotal) ?
> sprintf $fmt, $siteUsed / $siteTotal * 100 : '?';
>
> By :
>
> my $sitePercent = ($siteTotal);
> #sprintf $fmt, $siteUsed / $siteTotal * 100 : '?';
>
This should work...
my $sitePercent = ($siteTotal > 0) ?
sprintf $fmt, $siteUsed / $siteTotal * 100 : '?';
Paul.
--sig
Agility Systems, Inc.
Developers of www.ourfaqsite.com
Special Discounts of ourfaqsite.com accounts
for Webmasters up to 60% of the published
account prices.
For info contact ourfaqsite@xxxxxxxxxxxxxxxxxx