Compare commits
1 Commits
dc50432ee8
...
d7cb8e1072
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7cb8e1072 |
@@ -255,8 +255,8 @@ console.log(` History: [${allValues.values.join(', ')}]\n`);
|
||||
console.log('--- Lagged sample comparison ---');
|
||||
|
||||
const latest = stats.getCurrentValue(); // existing helper
|
||||
const prevSample = stats.getLaggedValue(1); // new helper
|
||||
const prevPrevSample = stats.getLaggedValue(2); // optional
|
||||
const prevSample = stats.getLaggedValue(2); // new helper
|
||||
const prevPrevSample = stats.getLaggedValue(3); // optional
|
||||
|
||||
if (prevSample) {
|
||||
const delta = latest - prevSample.value;
|
||||
|
||||
Reference in New Issue
Block a user