Skip to content

Commit

Permalink
server: Record MilPixelsProcessed on B
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed May 21, 2021
1 parent fac6423 commit 09d1216
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/segment_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,10 @@ func SubmitSegment(sess *BroadcastSession, seg *stream.HLSSegment, nonce uint64)
pixelCount,
priceInfo.FloatString(3),
)

if monitor.Enabled {
monitor.MilPixelsProcessed(float64(pixelCount) / 1000000.0)
}
}

// transcode succeeded; continue processing response
Expand Down

0 comments on commit 09d1216

Please sign in to comment.