diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_go2work.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/c_go2work.go b/src/c_go2work.go index 0b8e4f9..3b4e4a3 100644 --- a/src/c_go2work.go +++ b/src/c_go2work.go @@ -54,13 +54,14 @@ import ( func main() { t := get_time() - ticker := time.NewTicker(1 * time.Second) + ticker := time.NewTicker(2 * time.Second) quit := make(chan struct{}) fmt.Println("Time is: " + t) + exec_player("mpv", "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") for { select { case <- ticker.C: - exec_player("/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") + exec_player("mpv", "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") case <- quit: ticker.Stop() return |