fixed some syntax errors

This commit is contained in:
Saxon1 2018-04-24 15:17:45 +09:30
parent f73345db9a
commit d8a103c4d3
1 changed files with 2 additions and 2 deletions

View File

@ -396,8 +396,8 @@ func (r *revid) outputClips() {
now = time.Now()
deltaTime := now.Sub(prevTime)
if deltaTime > time.Duration(bitrateTime)*time.Second {
r.currentBitrate = int64(float64(bytes*8)/float64(deltaTime/1e9)))
r.Log(Info, fmt.Sprintf("Bitrate: %v bits/s\n", r.currentBitrate )
r.currentBitrate = int64(float64(bytes*8)/float64(deltaTime/1e9))
r.Log(Info, fmt.Sprintf("Bitrate: %v bits/s\n", r.currentBitrate ))
r.Log(Info, fmt.Sprintf("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
prevTime = now
bytes = 0