import updater effeciency

This commit is contained in:
Darien Raymond
2017-02-26 15:01:43 +01:00
parent d93ff628bc
commit f87b0fcde7
+2 -1
View File
@@ -147,9 +147,10 @@ func (v *Updater) Run() {
if v.shouldTerminate() {
return
}
interval := v.Interval()
for v.shouldContinue() {
v.updateFunc()
time.Sleep(v.Interval())
time.Sleep(interval)
}
}
}