Skip to content

Commit

Permalink
Fix died monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lomik committed Nov 30, 2016
1 parent 7305e1a commit fd77267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elock.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (r *Record) IsDead() bool {

refresh, _ := time.ParseDuration(r.Value.Refresh)

if r.LastRefresh().Before(time.Now().Add(4 * refresh)) {
if r.LastRefresh().Before(time.Now().Add(-4 * refresh)) {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion main/elock.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const APP = "elock"
const VERSION = "0.3.1"
const VERSION = "0.3.2"

type Config struct {
EtcdEndpoints []string `json:"etcd-endpoints"`
Expand Down

0 comments on commit fd77267

Please sign in to comment.