mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 15:16:08 +00:00
fix: Calculated In time sometimes invalid due to $start variable reuse
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ if (!function_exists('mysqli_result')) {
|
||||
include("GameEngine/Village.php");
|
||||
AccessLogger::logRequest();
|
||||
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
@@ -256,7 +256,7 @@ $q = "
|
||||
<div id="stime">
|
||||
<div id="ltime">
|
||||
<div id="ltimeWrap">
|
||||
Calculated in <b><?php echo round(($generator->pageLoadTimeEnd()-$start)*1000);?></b> ms
|
||||
Calculated in <b><?php echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);?></b> ms
|
||||
<br/>Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user