diff --git a/bin/routing_figures/measure.py b/bin/routing_figures/measure.py index 8bcc9411..6dced9ac 100644 --- a/bin/routing_figures/measure.py +++ b/bin/routing_figures/measure.py @@ -125,8 +125,8 @@ def add(tokens: dict[str, collections.Counter[str]], project: str, kind: str, ru tokens["subagent type"][kind] += spent tokens["rung"][rung] += spent # Split whole, the first tools taking the remainder, so the tool table adds up to the others. - for position, tool in enumerate(tools): - tokens["tool"][tool] += spent // len(tools) + (position < spent % len(tools)) + for index, tool in enumerate(tools): + tokens["tool"][tool] += spent // len(tools) + (index < spent % len(tools)) def rung_at(cycles: list[tuple[str, str]], timestamp: str) -> Rung | str: