Skip to content
Snippets Groups Projects
Commit fa4a0f5f authored by benjamin's avatar benjamin
Browse files

improved comments and made NowMs round properly

parent b3bd9b68
No related branches found
No related tags found
4 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!408made the cfollower regualrly update the clock skew,!340Project/channels
...@@ -15,5 +15,5 @@ type localTime struct{} ...@@ -15,5 +15,5 @@ type localTime struct{}
func (localTime) NowMs() int64 { func (localTime) NowMs() int64 {
t := time.Now() t := time.Now()
return (t.UnixNano() + int64(time.Millisecond)/2) / int64(time.Millisecond) return (t.UnixNano() + int64(time.Millisecond)/2 + 1) / int64(time.Millisecond)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment