Title: wifi: stats rarely sampled on busy boxes; configured report_period ignored · Issue #352 · jangala-dev/devicecode-lua · GitHub
Open Graph Title: wifi: stats rarely sampled on busy boxes; configured report_period ignored · Issue #352 · jangala-dev/devicecode-lua
X Title: wifi: stats rarely sampled on busy boxes; configured report_period ignored · Issue #352 · jangala-dev/devicecode-lua
Description: Summary On busy boxes, per-client and radio Wi-Fi stats are rarely sampled. On Samos (BB7ZJW5MWK2TFJ, v0.11.2), hours with 40–62 connected devices show 0 clients. Separately, the configured 10 s report_period is ignored, so radios report...
Open Graph Description: Summary On busy boxes, per-client and radio Wi-Fi stats are rarely sampled. On Samos (BB7ZJW5MWK2TFJ, v0.11.2), hours with 40–62 connected devices show 0 clients. Separately, the configured 10 s re...
X Description: Summary On busy boxes, per-client and radio Wi-Fi stats are rarely sampled. On Samos (BB7ZJW5MWK2TFJ, v0.11.2), hours with 40–62 connected devices show 0 clients. Separately, the configured 10 s re...
Opengraph URL: https://github.com/jangala-dev/devicecode-lua/issues/352
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wifi: stats rarely sampled on busy boxes; configured report_period ignored","articleBody":"## Summary\n\nOn busy boxes, per-client and radio Wi-Fi stats are rarely sampled. On Samos (BB7ZJW5MWK2TFJ, v0.11.2), hours with 40–62 connected devices show 0 clients. Separately, the configured 10 s `report_period` is ignored, so radios report every 60 s.\n\n## Cause\n\n- **Timer restarts:** the stats loop rebuilds `sleep.sleep_op(report_period)` on every iteration ([radio.lua#L492-L499](https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/hal/drivers/radio.lua#L492-L499)). Every client join or leave therefore restarts the timer, and with steady client churn the tick rarely fires. v0.10.6 slept to an absolute deadline ([wireless.lua#L609](https://github.com/jangala-dev/devicecode-lua/blob/v0.10.6/src/services/hal/drivers/wireless.lua#L609)).\n- **`report_period` ignored:** `wifi.lua` reads `radio_cfg.report_period or 60` ([wifi.lua#L355](https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/wifi.lua#L355)). `bigbox-v1-cm.json` sets `report_period: 10` at the `wifi.data` level, not per radio.\n\n## Fix\n\n- Keep an absolute next-report deadline and use `sleep_until_op`.\n- Fall back to the service-level `report_period` when a radio doesn't set one.\n","author":{"url":"https://github.com/cpunt","@type":"Person","name":"cpunt"},"datePublished":"2026-10-29T15:03:57Z","url":"https://github.com/jangala-dev/devicecode-lua/issues/352"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cfb27a5d-e429-91e6-0ac6-2092f53b51a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5A8:2F2403:136929:1ADDD2:6AF89F66 |
| html-safe-nonce | 875a25932a29f4eae3de74577c4dad237b84a7ca108bca423b65b8a2a272cc07 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUE4OjJGMjQwMzoxMzY5Mjk6MUFEREQyOjZBRjg5RjY2IiwidmlzaXRvcl9pZCI6Ijg0MTY3MDE1NjA1NTA5OTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 995c7eef1234333f1b36104a946f959adbb246fbd0861a442c21ec829e1e95b4 |
| hovercard-subject-tag | issue:6102498767 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jangala-dev/devicecode-lua/352/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d03faeec1bd2deded1cf76fd5f670ff867f9390cf7401aaae3609ab82df0117e/jangala-dev/devicecode-lua/issues/352 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d03faeec1bd2deded1cf76fd5f670ff867f9390cf7401aaae3609ab82df0117e/jangala-dev/devicecode-lua/issues/352 |
| og:image:alt | Summary On busy boxes, per-client and radio Wi-Fi stats are rarely sampled. On Samos (BB7ZJW5MWK2TFJ, v0.11.2), hours with 40–62 connected devices show 0 clients. Separately, the configured 10 s re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cpunt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/jangala-dev/devicecode-lua git https://github.com/jangala-dev/devicecode-lua.git |
| octolytics-dimension-user_id | 44901909 |
| octolytics-dimension-user_login | jangala-dev |
| octolytics-dimension-repository_id | 814022112 |
| octolytics-dimension-repository_nwo | jangala-dev/devicecode-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 814022112 |
| octolytics-dimension-repository_network_root_nwo | jangala-dev/devicecode-lua |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width