Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Fixed duration calculation due to string return #17

Merged
merged 1 commit into from May 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Server_Instrumentation.php
Expand Up @@ -35,7 +35,7 @@ function endRequest()
$url = $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
$requestName = Common::getPageTitle();
$startTime = $_SERVER["REQUEST_TIME"];
$duration = timer_stop(0, 3) * 1000;
$duration = floatval(timer_stop(0, 3)) * 1000;
$this->_telemetryClient->trackRequest($requestName, $url, $startTime, $duration, http_response_code(), !is_404());

// Flush all telemetry items
Expand Down