README license, copyright cleanup, etc

This commit is contained in:
Derek Collison
2013-09-30 10:16:43 -07:00
parent e6b5c41e54
commit 4e1502cc4c
21 changed files with 102 additions and 36 deletions

View File

@@ -51,6 +51,7 @@ func parseInt64(d []byte) (n int64) {
return n
}
// Helper to move from float seconds to time.Duration
func secondsToDuration(seconds float64) time.Duration {
ttl := seconds * float64(time.Second)
return time.Duration(ttl)