latest version

This commit is contained in:
znetsixe
2025-10-21 12:45:06 +02:00
parent dc50432ee8
commit d7cb8e1072

View File

@@ -255,8 +255,8 @@ console.log(` History: [${allValues.values.join(', ')}]\n`);
console.log('--- Lagged sample comparison ---'); console.log('--- Lagged sample comparison ---');
const latest = stats.getCurrentValue(); // existing helper const latest = stats.getCurrentValue(); // existing helper
const prevSample = stats.getLaggedValue(1); // new helper const prevSample = stats.getLaggedValue(2); // new helper
const prevPrevSample = stats.getLaggedValue(2); // optional const prevPrevSample = stats.getLaggedValue(3); // optional
if (prevSample) { if (prevSample) {
const delta = latest - prevSample.value; const delta = latest - prevSample.value;