2 Commits 109ae60787 ... 3169918a50

Author SHA1 Message Date
  blackwine 3169918a50 becoming a party pig 3 weeks ago
  blackwine 109ae60787 becoming a party pig 3 weeks ago
1 changed files with 6 additions and 5 deletions
  1. 6 5
      bar.go

+ 6 - 5
bar.go

@@ -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()
 }