From 3ec7eddfedfc7d6cf3c9798036ef65401322d1c8 Mon Sep 17 00:00:00 2001 From: Trek H Date: Fri, 14 Aug 2020 12:54:07 +0930 Subject: [PATCH] revid: syntax --- revid/revid.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index 1952f889..e28b44ca 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -459,11 +459,9 @@ func (r *Revid) Start() error { // between recording periods for audio. d := time.Duration(0) if r.cfg.Input == config.InputAudio { - d = time.Duration(r.cfg.RecPeriod * float64(time.Second)) - } + d = time.Duration(r.cfg.RecPeriod * float64(time.Second)) } else if r.cfg.FileFPS != 0 { - d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond - } + d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond } r.cfg.Logger.Log(logger.Debug, "starting input processing routine")