From 6bcf486fa5dfeb76b3b2be52dcf53c92ff7ff663 Mon Sep 17 00:00:00 2001 From: izytechAB Date: Tue, 22 Oct 2024 18:55:33 +0200 Subject: [PATCH] Fixes Service stats processing time #99 Return integer so nats micro stats works. --- src/Service/ServiceEndpoint.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/ServiceEndpoint.php b/src/Service/ServiceEndpoint.php index 5fbcecf..d62bbbd 100644 --- a/src/Service/ServiceEndpoint.php +++ b/src/Service/ServiceEndpoint.php @@ -101,9 +101,9 @@ public function getNumRequests(): int return $this->num_requests; } - public function getProcessingTime(): float + public function getProcessingTime(): int { - return $this->processing_time * 1e9; + return round($this->processing_time * 1e9); } public function resetStats(): void