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 ( import (
"flag" "flag"
"fmt" "fmt"
"local/logger" "log"
"strconv" "strconv"
"strings" "strings"
"time" "time"
@ -92,7 +92,7 @@ func main() {
paused := false paused := false
delim := ':' 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() keych := keyChannel()
@ -120,7 +120,7 @@ func main() {
monitor.Stop() monitor.Stop()
} }
case <-stop: case <-stop:
logger.Logf() log.Print()
confirm <- true confirm <- true
return return
} }
@ -152,7 +152,7 @@ func main() {
notified = false notified = false
printTime(&cur, base, &delim, invert, repeat, eta) printTime(&cur, base, &delim, invert, repeat, eta)
case 'z': case 'z':
logger.Logf() log.Print()
printTime(&cur, base, &delim, invert, repeat, eta) 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) 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) { func alertTime(pRemains *time.Duration, target time.Duration, reverse, repeat bool) {