fix: v0.0.51 - reset generateMaxDecoded on stall too

- When n_decoded stops increasing, slot may stay is_processing
- Reset max on stall so next generation starts fresh
This commit is contained in:
Troed Sångberg
2026-06-13 23:35:10 +02:00
parent 1aa8675eee
commit 10319b5e80
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@troed/oc-ls-stats",
"version": "0.0.50",
"version": "0.0.51",
"type": "module",
"exports": {
"./tui": {
+1
View File
@@ -411,6 +411,7 @@ const tui: TuiPlugin = async (api) => {
debug(`gen slot=${slotId} nd=${nd} max=${tracker.generateMaxDecoded} counter reset`)
} else {
debug(`gen slot=${slotId} nd=${nd} max=${tracker.generateMaxDecoded} stalled`)
tracker.generateMaxDecoded = 0
tracker.lastGeneratedTps = 0
genEnded = true
}