Kraeius's Avatar
Files 1
Downloads 51,924
Favorites 170
My AddOns
View Bug Report
Gold and XP per hour calculation error
Bug #: 1048
File: RAETIA InfoHub
Date: 09/13/14 08:04 AM
By: Dresarn
Status: Not a Bug
I had a character online for 63 minutes and received 1674 gold. The G/h module reported that I was earning gold at a rate of 30ish gold per hour. This is obviously way off. By 68 minutes online it was saying that I was down to 12ish gold per hour. This is even further off. I think the calculation is calculating per minute as I had looked at the code prior to updating and adjusted by adding some 0s to the end of your 3600. I believe the time is calculated in milliseconds and you are just calculating seconds in an hour. Even with that change though the numbers didn't quite seem to work, the numbers ticked down faster than it seemed as though they should. Looking now, I am at 74 minutes online and down to 7ish gold per hour. I hope I provided enough info for you to find the issue. The exact same thing happened before for XP/h module, but I have not tested that yet since updating.

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Kraeius - 09/15/14 07:20 PM
It's calculation updates on realtime, so each second is like a new calculation made. Normally you expect 800ish gold per hour but it's formula is not like that. I understand your point which also made me think on it earlier. I'll work on it for alternatives.