1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-01-12 10:50:24 +02:00
parent 87873d27ca
commit 0d8d67a9a3

View File

@ -78,7 +78,7 @@ export function normalizeMetrics(metrics: IMetrics, frames = 60): IMetrics {
result.forEach(res => { result.forEach(res => {
if (!res.values || !res.values.length) return; if (!res.values || !res.values.length) return;
let now = moment().startOf("minute").unix(); let now = moment().startOf("minute").subtract(1, "minute").unix();
let timestamp = res.values[0][0]; let timestamp = res.values[0][0];
while (timestamp <= now) { while (timestamp <= now) {