[sork] Accounts/quota

MiikaT mlist.horde2 at finansium.fi
Sun Aug 3 02:18:44 PDT 2003


Quoting Eric Rostetter <eric.rostetter at physics.utexas.edu>:

> So, you would want to edit the file(s) and decrement the indexes for
> $splitted[] by one.  Something like:
> 
>            $splitted = split("[[:blank:]]+", trim($quota_data[0]));
>            $used = $splitted[0] / 1000 ; $quota = $splitted[1] / 1000 ;
>            $percent = $used * 100 / $quota ;
>            $exceeded = strpos($splitted[0], "*") ? "EXCEEDED!":"";

I suppose your example is something that is not in the code already? I tried to 
browse through the localhost.php, but I didn't come across with near matches to 
these lines.

-MiikaT



More information about the sork mailing list