12 lines
506 B
Diff
12 lines
506 B
Diff
diff --git a/packages/runs/src/state.mjs b/packages/runs/src/state.mjs
|
|
index af5cc927..3c78f1a3 100644
|
|
--- a/packages/runs/src/state.mjs
|
|
+++ b/packages/runs/src/state.mjs
|
|
@@ -79,5 +79,5 @@ export function readActivationLog(dataRoot, { last } = {}) {
|
|
if (entry === null) malformed += 1;
|
|
else entries.push(entry);
|
|
}
|
|
- return { entries: last === undefined ? entries : entries.slice(-last), malformed };
|
|
+ return { entries: last === undefined ? entries : entries.slice(0, last), malformed };
|
|
}
|