From 5ab98f41f15eb592cec52a8297a5e67c3329b4ea Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Thu, 26 Aug 2021 07:28:39 +0300 Subject: [PATCH] fix(endpoints): add more wiggle room for checkin interval (#5456) --- .../endpoint-list/endpoint-item/endpoint-item-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/portainer/components/endpoint-list/endpoint-item/endpoint-item-controller.js b/app/portainer/components/endpoint-list/endpoint-item/endpoint-item-controller.js index 1328f655a..0a0a944ea 100644 --- a/app/portainer/components/endpoint-list/endpoint-item/endpoint-item-controller.js +++ b/app/portainer/components/endpoint-list/endpoint-item/endpoint-item-controller.js @@ -38,7 +38,7 @@ class EndpointItemController { const now = Math.floor(Date.now() / 1000); // give checkIn some wiggle room - return now - this.model.LastCheckInDate <= checkInInterval * 2; + return now - this.model.LastCheckInDate <= checkInInterval * 2 + 20; } $onInit() {