The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Yeah, I think that's your problem - if radded is blank you shouldn't be including it in the average, right? You're subtracting the start time from 0 and ending up with a huge negative number. I think you need something like:
PHP Code:
|
#12
|
|||
|
|||
Another test, I changed $rep - $tick back to normal and got this:
Code:
tid=3 tadded=1265085047 radded=1265085108 seconds=61 i=1 tid=2 tadded=1265002705 radded=1265084927 seconds=82283 i=2 tid=1 tadded=1264641238 radded=1264641238 seconds=82283 i=3 7:37 --------------- Added [DATE]1265081713[/DATE] at [TIME]1265081713[/TIME] --------------- Do I need this at all? PHP Code:
|
#13
|
|||
|
|||
Well that first part keeps you from dividing by 0 if there are no replies. The last part I guess just sets it to 0 if there are no tickets (or there's a database error or something).
|
#14
|
|||
|
|||
Ah ok, overall then it is working, showing a high reply time but I assume that is due to the amount of tickets and the replies that are there since it is a testing enviroment.
|
#15
|
|||
|
|||
yeah, you can see the debug output and you can actually do the math yourself. you have 3 tickets with reply times 61 seconds, about 22 hours, 0 seconds, so the average should be around 7 hours.
|
#16
|
|||
|
|||
Yeah, pain pills kinda slows down my math skills. LOL
Its all good now, I have it giving an average for last 30 tickets and an average for a single ticket. Thanks for all the help. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|