whatever
This commit is contained in:
10
main.go
10
main.go
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user