[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Error with disk reporting in web interface



> 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