From d8a103c4d3f667ef2f897d6214e60d46c50dda42 Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Tue, 24 Apr 2018 15:17:45 +0930 Subject: [PATCH] fixed some syntax errors --- revid/Revid.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revid/Revid.go b/revid/Revid.go index 9d1b6e6e..127aae97 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -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