From 7b839d0f8344f39fc4c4cbd00e5ac82217aaeeaa Mon Sep 17 00:00:00 2001 From: IanCao Date: Wed, 19 Jun 2019 19:46:40 +0800 Subject: [PATCH] fix bug --- .../java/com/alibaba/nacos/client/naming/beat/BeatReactor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/naming/beat/BeatReactor.java b/client/src/main/java/com/alibaba/nacos/client/naming/beat/BeatReactor.java index f1654c846..c2dc81374 100644 --- a/client/src/main/java/com/alibaba/nacos/client/naming/beat/BeatReactor.java +++ b/client/src/main/java/com/alibaba/nacos/client/naming/beat/BeatReactor.java @@ -89,7 +89,7 @@ public class BeatReactor { if (beatInfo.isStop()) { return; } - long nextTime = result > 0 ? System.currentTimeMillis() + result : System.currentTimeMillis() + beatInfo.getPeriod(); + long nextTime = result > 0 ? result : beatInfo.getPeriod(); executorService.schedule(new BeatTask(beatInfo), nextTime, TimeUnit.MILLISECONDS); } }