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 24, 2021
1 parent f3ee006 commit d6d50c2
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 @@ -528,6 +528,10 @@ func SubmitSegment(sess *BroadcastSession, seg *stream.HLSSegment, nonce uint64)
}

balUpdate.Debit.Mul(new(big.Rat).SetInt64(pixelCount), priceInfo)

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

// transcode succeeded; continue processing response
Expand Down

0 comments on commit d6d50c2

Please sign in to comment.