diff --git a/master/src/routes/hodler.js b/master/src/routes/hodler.js index 7f2c0f7..ab2c3cf 100644 --- a/master/src/routes/hodler.js +++ b/master/src/routes/hodler.js @@ -236,6 +236,9 @@ const onOrchUpdate = async function (id, obj, tag, region, livepeer_regions) { now - newRegion.measurements[newRegion.measurements.length - 1].timestamp; } newRegion.measurements.push(measurement); + if (newRegion.measurements.length > 60) { + newRegion.measurements = newRegion.measurements.slice(1); + } // Recalc average && uptime let uptime = 0;