Removed some more use of debug flag in revid

This commit is contained in:
Unknown 2018-01-23 15:22:59 +10:30
parent 0145d11b59
commit eb3f6a82d9
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ func (r *revidInst) output() {
} }
now = time.Now() now = time.Now()
deltaTime := now.Sub(prevTime) deltaTime := now.Sub(prevTime)
if r.config.Debug && deltaTime > time.Duration(bitrateTime)*time.Second { if deltaTime > time.Duration(bitrateTime)*time.Second {
fmt.Printf("Bitrate: %v bytes/s\n", int64(float64(bytes) / float64(deltaTime/1e9))) fmt.Printf("Bitrate: %v bytes/s\n", int64(float64(bytes) / float64(deltaTime/1e9)))
prevTime = now prevTime = now
bytes = 0 bytes = 0