handle new umadump output shapes

This commit is contained in:
2026-07-29 15:19:17 -04:00
parent 6864472fdd
commit f5d102718d
7 changed files with 10685 additions and 805 deletions
+2 -5
View File
@@ -3,7 +3,6 @@ package main
import (
"bufio"
"encoding/csv"
"encoding/json"
"flag"
"log/slog"
"os"
@@ -46,10 +45,8 @@ func dofile(w *csv.Writer, name string) {
}
defer f.Close()
var ism WorkIdleSingleMode
d := json.NewDecoder(f)
d.DisallowUnknownFields()
if err := d.Decode(&ism); err != nil {
ism, err := loadISM(f)
if err != nil {
log.Error("decode", slog.Any("err", err))
return
}