Skip to content

Commit

Permalink
Fix avgRoundTripTime metrics (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko authored May 25, 2022
1 parent 13d635b commit 6d517ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/orch-tester/orch_tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (s *streamerClient) avgDownloadTime() (float64, error) {

func (s *streamerClient) avgRoundTripTime() (float64, error) {
val, err := s.queryVectorMetric(
"rate(livepeer_transcode_overall_latency_seconds_sum[1m])/rate(livepeer_transcode_overall_latency_seconds_count[1m])",
"sum(rate(livepeer_transcode_overall_latency_seconds_sum[1m]))/sum(rate(livepeer_transcode_overall_latency_seconds_count[1m]))",
)
if err != nil {
return 0, err
Expand Down

0 comments on commit 6d517ae

Please sign in to comment.