mirror of https://bitbucket.org/ausocean/av.git
fixed some syntax errors
This commit is contained in:
parent
f73345db9a
commit
d8a103c4d3
|
@ -396,8 +396,8 @@ func (r *revid) outputClips() {
|
||||||
now = time.Now()
|
now = time.Now()
|
||||||
deltaTime := now.Sub(prevTime)
|
deltaTime := now.Sub(prevTime)
|
||||||
if deltaTime > time.Duration(bitrateTime)*time.Second {
|
if deltaTime > time.Duration(bitrateTime)*time.Second {
|
||||||
r.currentBitrate = int64(float64(bytes*8)/float64(deltaTime/1e9)))
|
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("Bitrate: %v bits/s\n", r.currentBitrate ))
|
||||||
r.Log(Info, fmt.Sprintf("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
|
r.Log(Info, fmt.Sprintf("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
|
||||||
prevTime = now
|
prevTime = now
|
||||||
bytes = 0
|
bytes = 0
|
||||||
|
|
Loading…
Reference in New Issue