master
Bel LaPointe 2019-05-02 09:33:21 -06:00
parent 48ef624154
commit 7a99f2af50
1 changed files with 5 additions and 5 deletions

10
main.go
View File

@ -4,7 +4,7 @@ package main
import (
"flag"
"fmt"
"local/logger"
"log"
"strconv"
"strings"
"time"
@ -92,7 +92,7 @@ func main() {
paused := false
delim := ':'
logger.Log("Quit with 'q', Pause with 'p', Reset with 'r'")
log.Print("Quit with 'q', Pause with 'p', Reset with 'r'")
keych := keyChannel()
@ -120,7 +120,7 @@ func main() {
monitor.Stop()
}
case <-stop:
logger.Logf()
log.Print()
confirm <- true
return
}
@ -152,7 +152,7 @@ func main() {
notified = false
printTime(&cur, base, &delim, invert, repeat, eta)
case 'z':
logger.Logf()
log.Print()
printTime(&cur, base, &delim, invert, repeat, eta)
}
}
@ -202,7 +202,7 @@ func printTime(pRemains *time.Duration, target time.Duration, delim *rune, rever
go alertTime(pRemains, target, reverse, repeat)
}
}
logger.Logf("\r%s", final)
fmt.Printf("\r%s", final)
}
func alertTime(pRemains *time.Duration, target time.Duration, reverse, repeat bool) {