Improved MistIn* player timer accuracy.
This commit is contained in:
parent
a15dc736da
commit
e2d6b226da
1 changed files with 5 additions and 5 deletions
|
@ -165,14 +165,14 @@ namespace Mist {
|
||||||
|
|
||||||
DEBUG_MSG(DLVL_DONTEVEN,"Pre-While");
|
DEBUG_MSG(DLVL_DONTEVEN,"Pre-While");
|
||||||
|
|
||||||
long long int activityCounter = Util::getMS();
|
long long int activityCounter = Util::bootSecs();
|
||||||
while ((Util::getMS() - activityCounter) < 10000){//10 second timeout
|
while ((Util::getMS() - activityCounter) < 10){//10 second timeout
|
||||||
DEBUG_MSG(DLVL_HIGH, "Timer running");
|
DEBUG_MSG(DLVL_INSANE, "Timer running");
|
||||||
Util::sleep(1000);
|
Util::wait(1000);
|
||||||
removeUnused();
|
removeUnused();
|
||||||
userPage.parseEach(doNothing);
|
userPage.parseEach(doNothing);
|
||||||
if (userPage.amount){
|
if (userPage.amount){
|
||||||
activityCounter = Util::getMS();
|
activityCounter = Util::bootSecs();
|
||||||
DEBUG_MSG(DLVL_HIGH, "Connected users: %d", userPage.amount);
|
DEBUG_MSG(DLVL_HIGH, "Connected users: %d", userPage.amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue