From 3d7a8af970e08fdc31b86154734e3badedcd9496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lombardo?= Date: Wed, 22 Nov 2023 13:25:28 -0300 Subject: [PATCH] flip sign --- pipeline/aggregate/blocks/calls/CallsStats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/aggregate/blocks/calls/CallsStats.ts b/pipeline/aggregate/blocks/calls/CallsStats.ts index 67fc4e7d..8d3f9d2b 100644 --- a/pipeline/aggregate/blocks/calls/CallsStats.ts +++ b/pipeline/aggregate/blocks/calls/CallsStats.ts @@ -65,7 +65,7 @@ const fn: BlockFn = (database, filters, common, args) => { // compute time difference between calls let diff = diffDatetime(lastCall, startDatetime); if (diff < 0) { - secondsInCall += diff; // Remove overlap + secondsInCall -= diff; // remove overlap diff = 0; } timesBetween[total - 1] = diff;