From 2d7e73dd69ef8b6fb51da3a6d22b04867a78ca37 Mon Sep 17 00:00:00 2001 From: Rakhi Mundhada Date: Tue, 2 Jul 2024 19:04:19 +0530 Subject: [PATCH] update the hour-cap condition to collect if delay is 1 hr or greater --- package.json | 2 +- paws_utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eaba9d51..6de11fd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alertlogic/paws-collector", - "version": "2.2.3", + "version": "2.2.4", "license": "MIT", "description": "Alert Logic AWS based API Poll Log Collector Library", "repository": { diff --git a/paws_utils.js b/paws_utils.js index c9f9cc53..ef4d2842 100644 --- a/paws_utils.js +++ b/paws_utils.js @@ -46,7 +46,7 @@ function calcNextCollectionInterval(strategy, curUntilMoment, pollInterval) { } break; case 'hour-cap': - if (hoursDiff > 1) { + if (hoursDiff >= 1) { nextUntilMoment = moment(nextSinceMoment).add(1, 'hours'); } else {