diff --git a/lib/status.js b/lib/status.js index 41165def..e3ba336a 100644 --- a/lib/status.js +++ b/lib/status.js @@ -106,7 +106,9 @@ class Status extends EventEmitter { }); if (this.rollingPercentilesEnabled) { - acc.latencyTimes.push.apply(acc.latencyTimes, val.latencyTimes || []); + if (val.latencyTimes) { + acc.latencyTimes = acc.latencyTimes.concat(val.latencyTimes); + } } return acc; }, bucket());