Skip to content

Commit

Permalink
Fixes Service stats processing time #99
Browse files Browse the repository at this point in the history
Return integer so nats micro stats works.
  • Loading branch information
izytechAB authored and nekufa committed Oct 24, 2024
1 parent d47dc20 commit 6bcf486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/ServiceEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bcf486

Please sign in to comment.