mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-24 13:36:32 +00:00
fix: Calculated In time sometimes invalid due to $start variable reuse
This commit is contained in:
@@ -14,7 +14,7 @@ use App\Utils\AccessLogger;
|
||||
include("GameEngine/Village.php");
|
||||
AccessLogger::logRequest();
|
||||
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['ok'])){
|
||||
$database->updateUserField($session->uid,'ok','0','1'); $_SESSION['ok'] = '0';
|
||||
}
|
||||
@@ -106,7 +106,7 @@ include("Templates/res.tpl");
|
||||
<div id="ltime">
|
||||
<div id="ltimeWrap">
|
||||
<?php echo CALCULATED_IN;?> <b><?php
|
||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
||||
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||
?></b> ms
|
||||
|
||||
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||
|
||||
Reference in New Issue
Block a user