Commit 288a580
Normalize run data once, not once per run streamer
publish_run_data called normalize_run_data inside the per-streamer loop.
normalize_run_data mutates the shared run_data_collaction in place
(replacing each normalized observable with value/events_processed) and is
not idempotent, so with two or more run-mode streamers the second
streamer published value/N^2, the third value/N^3, and so on. Hoist the
normalization out of the loop so it runs exactly once per run regardless
of streamer count.
Fixes #105
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 48f83e5 commit 288a580
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
| |||
0 commit comments