Skip to content

Commit d438f11

Browse files
committed
correct pass1_found inflation on resume runs
1 parent c6e586b commit d438f11

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

enricher.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,9 +802,10 @@ def main() -> None:
802802
autosave_interval = cfg.get("autosave_interval", 60)
803803

804804
# ── Pass 1 ─────────────────────────────────────────────────────────────
805+
found_before_pass1 = len(found) # snapshot before pass 1
805806
auto_saver1 = AutoSaver(found, out_file, cfg, stats, interval=autosave_interval)
806807
needs_pw = run_pass1(targets, done, found, out_file, state, ctx, cfg)
807-
stats["pass1_found"] = len(found)
808+
stats["pass1_found"] = len(found) - found_before_pass1 # only this run's finds
808809
auto_saver1.stop()
809810

810811
if should_stop(state, cfg.get("stop_at", "")):
@@ -844,4 +845,4 @@ def main() -> None:
844845

845846

846847
if __name__ == "__main__":
847-
main()
848+
main()

0 commit comments

Comments
 (0)