Registered Member
|
After manual announce displayed time for the next update become incorrect.
When manual announce is performed and the data from tracker is received the function Tracker::setInterval change update_timer, but doesn't change time_of_last_update. |
Moderator
|
|
Registered Member
|
Yes, but the result from a manual update is same as from a cyclic update. HTTPTracker::updateData invoke void Tracker::setInterval(Uint32 secs) and as a result the cycle is broken - update_timer.changeInterval(1000*secs); |
Registered Member
|
By the way, why we don't count manual updates as normal updates?
About displayed time for the next update and the real time for update - they are not enought consistent. time_of_last_update is set before request to the tracker but update_timer is set after receiving the result. The differance between them will be equal to the time for receiving an answer from the tracker. |
Moderator
|
|
Moderator
|
Ignore that my last post, it seems that QTimer::changeInterval does restart the timer.
http://doc.trolltech.com/3.3/qtimer.html#changeInterval We will have to fix it then. |
Moderator
|
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]