6.0.0-alpha14
7/2/25

[#2685] Add Quota Display Page to Gollem
Summary Add Quota Display Page to Gollem
Queue Gollem
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester slusarz (at) horde (dot) org
Created 09/27/2005 (7218 days ago)
Due
Updated 10/26/2005 (7189 days ago)
Assigned
Resolved 10/26/2005 (7189 days ago)
Milestone
Patch No

History
10/26/2005 10:25:53 PM Chuck Hagenbuch State ⇒ Resolved
 
10/26/2005 10:24:16 PM aj (at) mindcrash (dot) com Comment #14 Reply to this comment
This is fixed.  I was using '20 M' instead of '20 MB' in backends.php.

Sorry about that.



The quota graph looks great BTW.
10/26/2005 10:48:14 AM aj (at) mindcrash (dot) com Comment #13 Reply to this comment
Here it is...



I get this on the screen



Array ( [usage] => 17757126 [limit] => 20 )





And i still get

PHP Warning:  Division by zero in 
/usr/local/lib/php/Horde/Graph/Chart/pie.php on line 74



in my logs



Let me know what to do next.



Thanks.
10/26/2005 06:08:22 AM Michael Slusarz Comment #12 Reply to this comment
Please add the following to quota.php on line 41:

print_r($quota_info);

and post the output.
10/20/2005 10:50:57 AM aj (at) mindcrash (dot) com Comment #11 Reply to this comment
Ok, typo on my end, sorry about that.



But, now when I click on the Check Quota link, I get a page that says

Quota Usage on the top, but otherwise is blank.

Here is an error that comes up.



PHP Warning:  Division by zero in 
/usr/local/lib/php/Horde/Graph/Chart/pie.php on line 74



Any ideas on this one?  I did update all of the framework packages, 
not just VFS.




10/20/2005 04:51:42 AM Michael Slusarz Comment #10 Reply to this comment

[Show Quoted Text - 9 lines]
make sure 'loginparams' is enabled for the particular backend you are 
trying to login to.  I touched no code that would have affected this 
so there is something up on your end.
10/20/2005 02:18:18 AM aj (at) mindcrash (dot) com Comment #9 Reply to this comment
Now I am getting this trying to login into gollem.



Invalid argument supplied for foreach() in 
/usr/local/websites/webmail/docs/gollem/templates/login/login.inc on 
line 116



I updated my backends.php file from the new .dist



Any ideas?
10/19/2005 07:56:12 PM Michael Slusarz Comment #8 Reply to this comment
Try the changes I just made to both gollem and the VFS library.
10/13/2005 11:39:34 PM aj (at) mindcrash (dot) com Comment #7 Reply to this comment
Cool, but I am getting a no quota found when I click on the check quota link.

Here is the setting in backends.php:



        'quota' => "20 MB",



It does calculate the amount of disk space all of the files use though.

Anything I need to check?



Thanks.
10/13/2005 05:45:28 PM Michael Slusarz Comment #6
Assigned to Michael Slusarz
State ⇒ Feedback
Reply to this comment
Initial implementation completed.
10/06/2005 08:05:48 AM Jan Schneider Comment #5 Reply to this comment
Bounty added to bounties page.
10/06/2005 01:39:43 AM aj (at) mindcrash (dot) com Comment #4 Reply to this comment
I'd like to offer a $25 bounty for this, how can I do that?
09/28/2005 05:56:30 AM Michael Slusarz Comment #3 Reply to this comment
sure, a $10,000 bounty would make this get done a lot faster :)



truthfully, this won't take too much time to code - i just haven't got 
to it yet (other stuff is higher priority right now).
09/27/2005 10:27:29 PM aj (at) mindcrash (dot) com Comment #2 Reply to this comment
Is this something that can be easily done or would it require a new bounty?
09/27/2005 06:39:05 AM Michael Slusarz Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Add Quota Display Page to Gollem
Queue ⇒ Gollem
State ⇒ Accepted
Reply to this comment
From Bug #162:

I hesitate to do this because determining the current size of all 
files in a VFS backend can be a very time-consuming process (e.g. a 
ftp account with hundreds of folders).  The code as it stands right 
now only calculates the size when a write process is performed.  This 
will not happen on the majority of page loads.  If you are asking to 
recalculate the filesize on every page load with some kind of status 
bar, this will be a terrible performance issue at this time.



Other options to consider:

1.) Caching filesize - this will only work if we can be sure that the 
Horde VFS object in the current session is the only method that can be 
used to update the filesystem.  This might be doable if we add an 
'exclusivevfsupdate' parameter that indicates this is the case.  In 
the default case, however, we can't cache.

2.) Have a separate page in gollem that can be accessed that will show 
the VFS quota information - a better option.

Saved Queries