|
@@ -20,14 +20,15 @@ type ScreenBar struct {
|
|
|
columns int
|
|
|
}
|
|
|
|
|
|
-func (bar *ScreenBar) reset(msg *osc.Message) {
|
|
|
- bar.ticks = 0
|
|
|
- bar.ticker.Reset(time.Second)
|
|
|
+// Ticker's gonna tick
|
|
|
+func (bar *ScreenBar) tick() {
|
|
|
+ bar.ticks += 1
|
|
|
bar.update()
|
|
|
}
|
|
|
|
|
|
-func (bar *ScreenBar) tick() {
|
|
|
- bar.ticks += 1
|
|
|
+func (bar *ScreenBar) reset(msg *osc.Message) {
|
|
|
+ bar.ticks = 0
|
|
|
+ bar.ticker.Reset(time.Second)
|
|
|
bar.update()
|
|
|
}
|
|
|
|