Skip to content

Commit

Permalink
fix bmizerany#1 - time.Nanoseconds() -> time.Now().UnixNano()
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Dec 5, 2011
1 parent 7344b3b commit 357fe94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -117,7 +117,7 @@ func serve(r io.Reader, w io.Writer) error {
}

func milliseconds() int64 {
return time.Nanoseconds() / 1e6
return time.Now().UnixNano() / 1e6
}

func nextId() (int64, error) {
Expand Down

0 comments on commit 357fe94

Please sign in to comment.