mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 07:06:06 +00:00
fix: Calculated In time sometimes invalid due to $start variable reuse
This commit is contained in:
+2
-2
@@ -45,7 +45,7 @@ AccessLogger::logRequest();
|
||||
die("Access Denied: You are not Admin!");
|
||||
}else{
|
||||
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
@@ -555,7 +555,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