FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Statistics - incorrect numbers
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Statistics - incorrect numbers [message #31264] Thu, 13 April 2006 14:43 Go to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
When I run forum stats on my forums where the "data dir" is a sub directory of "web dir", I see that "Web Dir" reports the total amount of disk space for the entire forums, including forum data. Let us say this number is 50Mb. "Data Dir" reports only the space in the non-browseable forum data. Let us make this 40MB. Now looking at the "Total Disk Usage" you see those two numbers added together, which is a false representation of disk space used by the forums. There should be a check if "Data Dir" is located under "Web Dir", and if so, it should subtract the amount in "Data Dir" from "Web Dir". The other alternative is to check for this and then set the "Total" to the same number as "Web Dir".

[Updated on: Fri, 14 April 2006 02:10]

Report message to a moderator

Re: Statistics - incorrect numbers [message #31287 is a reply to message #31264] Fri, 14 April 2006 20:54 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The check is already there ($DATA_DIR != $WWW_ROOT_DISK) do those values differ for you inside your GLOBALS.php?

FUDforum Core Developer
Re: Statistics - incorrect numbers [message #31291 is a reply to message #31287] Fri, 14 April 2006 21:47 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
They do.
Re: Statistics - incorrect numbers [message #31292 is a reply to message #31291] Fri, 14 April 2006 22:28 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Can you show me a screenshot of the stats page?

FUDforum Core Developer
Re: Statistics - incorrect numbers [message #31335 is a reply to message #31292] Tue, 18 April 2006 12:17 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
sure:
index.php?t=getfile&id=2446&private=0

[Updated on: Tue, 18 April 2006 12:22]

Report message to a moderator

Re: Statistics - incorrect numbers [message #31344 is a reply to message #31335] Tue, 18 April 2006 14:04 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, I see why the code didn't work, the two directories are NOT the same, one is found inside the other, the forum's counter was only checking if the two are the same.

I've made a patch to accomodate for such a setup, you can find it here:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7578


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: some buttons not styled
Next Topic: PM Error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 05:40:27 GMT 2024

Total time taken to generate the page: 0.02047 seconds