[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 didn't solve totaly the problem, but you don't have the internal server
error and you can
entierly access to the diskusage by user (this part works fine)....

If somebody that is a perl guru could help us with this part of the code it
would be great !

Ramon

----- Original Message -----
From: Peter Shilling <peterlists@xxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, November 08, 2001 12:12 PM
Subject: [cobalt-users] Error with disk reporting in web interface


> Hi all
>
> I have an interesting problem for you all.
>
> When you click on "Active monitor" then on disk I recieve an error
>
> "The server encountered an internal error or
>                     misconfiguration and was unable to complete your
>                     request. "
>
> I took a look in the /var/log/httpd/adm_error.log and it says
>
> Illegal division by zero at
> /usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi line 204.
> [Thu Nov  8 22:13:35 2001] [error] [client 202.7.89.171] Premature end
> of script headers: /usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi
>
> Has anyone come accross this one before???
>
> Peter
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>