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

Home » FUDforum Development » Bug Reports » average counting
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
average counting [message #6399] Wed, 09 October 2002 19:09 Go to previous message
zapal   Poland
Messages: 68
Registered: October 2002
Location: Poland
Karma:
Member
I noticed a bug in average post per day counting.

It returns number of all posts sends even though the user has joined the forum several days before.
I can also notice this bug for protoss on this forum
2468 messages (2468 average per day).

I use fud 2.3.2.

I've found out that line responsible for this is in theme/default/usrinfo.php, line 507 to 508.

It's sth like that (in pseudo code):
avg = posted_msg_count/((__request_timestamp__-join_date)/86400)
if (avg > posted_msg_count) avg=posted_msg_count


It looks as if it was the problem with rounded values (after dividing by 86400). Am I right?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Group creation problem
Next Topic: avatar upload problem
Goto Forum:
  

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

Current Time: Wed Nov 27 09:06:39 GMT 2024

Total time taken to generate the page: 0.05158 seconds