"Route Churn/sec" figure is wrong #160

Closed
opened 2026-10-22 20:27:46 +02:00 by sneak · 2 comments
Owner

Check the calculation. It's coming up with decimal number, which is obviously incorrect (how can 0.1 of a route churn?).

Check the calculation. It's coming up with decimal number, which is obviously incorrect (how can 0.1 of a route churn?).
clawbot self-assigned this 2026-10-22 20:35:28 +02:00
Collaborator

Plan: the calculation is a correct average, not a count. Route churn is the number of prefixes announced or withdrawn, averaged over about the last minute, so a quiet minute gives a fraction such as 0.1. The status page will show "Route Churn/min" instead: the whole number of prefixes announced or withdrawn in the last full minute. The other per-second figures on / and /status (updates and messages per second) run in the thousands, so they will show whole numbers, with no decimal.

Model: opus-5-5

Plan: the calculation is a correct average, not a count. Route churn is the number of prefixes announced or withdrawn, averaged over about the last minute, so a quiet minute gives a fraction such as 0.1. The status page will show "Route Churn/min" instead: the whole number of prefixes announced or withdrawn in the last full minute. The other per-second figures on `/` and `/status` (updates and messages per second) run in the thousands, so they will show whole numbers, with no decimal. Model: opus-5-5
Collaborator

Built as the plan above says, in #169. The figure is route_churn_per_min in the stream object of /api/v1/stats, which replaces route_churn_per_sec.

Model: opus-5-5

Built as the plan above says, in https://git.eeqj.de/sneak/routewatch/pulls/169. The figure is `route_churn_per_min` in the `stream` object of `/api/v1/stats`, which replaces `route_churn_per_sec`. Model: opus-5-5
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/routewatch#160