diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-01-29 13:37:52 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-03-21 14:13:05 -0400 |
commit | 7bf7d5aa5c1df452fd88f26026f129fd9b49fbe1 (patch) | |
tree | b5314b4ef2c470e169d6dec9415f2b32f63b7403 /.config/wmii-hg/rbar_clock.go | |
parent | affee5f76f0cd83ec28179b30456f311b82ea450 (diff) |
wmii: rbar_clock: re-implement in C
Diffstat (limited to '.config/wmii-hg/rbar_clock.go')
-rw-r--r-- | .config/wmii-hg/rbar_clock.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/.config/wmii-hg/rbar_clock.go b/.config/wmii-hg/rbar_clock.go deleted file mode 100644 index 247dd3a..0000000 --- a/.config/wmii-hg/rbar_clock.go +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "time" - - "./rbar_util" -) - -func main() { - rbar_util.Main(rbar_util.Impl{ - Update: func(id string) error { - defer rbar_util.Remove(rbar_util.GlobEscape(id)) - - now := time.Now() - start := now.Truncate(time.Second).Add(time.Second) - time.Sleep(start.Sub(now)) - - clock := time.NewTicker(1*time.Second) - defer clock.Stop() - for now := range clock.C { - err := rbar_util.Write(id, now.Format("label Mon 2006-01-02 15:04:05 MST(-07)")) - if err != nil { - return err - } - } - panic("not reached") - }, - }) -} |