Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
s
Browse files Browse the repository at this point in the history
Signed-off-by: yunfeiyangbuaa <[email protected]>
  • Loading branch information
yunfeiyanggzq committed Sep 14, 2019
1 parent 7dd9e88 commit d737c54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion supernode/daemon/mgr/gc/gc_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package gc
import (
"context"
"sync"
"time"

"github.com/dragonflyoss/Dragonfly/pkg/timeutils"
"github.com/dragonflyoss/Dragonfly/supernode/util"
Expand All @@ -41,7 +42,7 @@ func (gcm *Manager) gcPeers(ctx context.Context) {
}

if peerState.ServiceDownTime == 0 ||
timeutils.GetCurrentTimeMillis()-peerState.ServiceDownTime < int64(gcm.cfg.PeerGCDelay) {
timeutils.GetCurrentTimeMillis()-peerState.ServiceDownTime < int64(gcm.cfg.PeerGCDelay/time.Millisecond) {
continue
}

Expand Down

0 comments on commit d737c54

Please sign in to comment.