René's URL Explorer Experiment


Title: metrics: negative byte counts from 32-bit wrap of 64-bit counters and counter resets · Issue #353 · jangala-dev/devicecode-lua · GitHub

Open Graph Title: metrics: negative byte counts from 32-bit wrap of 64-bit counters and counter resets · Issue #353 · jangala-dev/devicecode-lua

X Title: metrics: negative byte counts from 32-bit wrap of 64-bit counters and counter resets · Issue #353 · jangala-dev/devicecode-lua

Description: Summary Telemetry shows negative byte counts. Samos (BB7ZJW5MWK2TFJ) showed −2.0 GB of Wi-Fi on 17 Sep, and −5.35 GB across 7 LTE samples between 21 Sep and 11 Oct. Download graphs therefore under-read. Cause 32-bit wrap: fix_underflow s...

Open Graph Description: Summary Telemetry shows negative byte counts. Samos (BB7ZJW5MWK2TFJ) showed −2.0 GB of Wi-Fi on 17 Sep, and −5.35 GB across 7 LTE samples between 21 Sep and 11 Oct. Download graphs therefore under-...

X Description: Summary Telemetry shows negative byte counts. Samos (BB7ZJW5MWK2TFJ) showed −2.0 GB of Wi-Fi on 17 Sep, and −5.35 GB across 7 LTE samples between 21 Sep and 11 Oct. Download graphs therefore under-...

Opengraph URL: https://github.com/jangala-dev/devicecode-lua/issues/353

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"metrics: negative byte counts from 32-bit wrap of 64-bit counters and counter resets","articleBody":"## Summary\n\nTelemetry shows negative byte counts. Samos (BB7ZJW5MWK2TFJ) showed −2.0 GB of Wi-Fi on 17 Sep, and −5.35 GB across 7 LTE samples between 21 Sep and 11 Oct. Download graphs therefore under-read.\n\n## Cause\n\n- **32-bit wrap:** `fix_underflow` subtracts 2^32 from any value over INT32_MAX ([radio.lua#L43-L48](https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/hal/drivers/radio.lua#L43-L48)). It is also applied to per-station `tx_bytes`/`rx_bytes` ([radio.lua#L407-L414](https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/hal/drivers/radio.lua#L407-L414)), which are 64-bit, so any counter past 2 GiB goes negative.\n- **No reset handling:** `DeltaValue:run` returns `value - last_val` without handling a counter reset ([processing.lua#L201-L211](https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/metrics/processing.lua#L201-L211)). After a `wifi reload` or interface restart, the next delta is minus the old total. This predates v0.11, but v0.11 reloads more often.\n\n## Fix\n\n- Apply `fix_underflow` only to signed 32-bit fields (signal, noise, txpower, channel).\n- In `DeltaValue`, treat a value lower than the last one as a reset: report the new value, or skip that sample.\n","author":{"url":"https://github.com/cpunt","@type":"Person","name":"cpunt"},"datePublished":"2026-10-29T15:03:59Z","url":"https://github.com/jangala-dev/devicecode-lua/issues/353"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:83855a1e-4d38-8e03-6152-978a2d19275d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC02A:B0154:160326E:1D27B2A:6AF89FDD
html-safe-nonce05d302fdc51fab24b13a47e646548b0dee498dc65f837d9159716af909f195f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDJBOkIwMTU0OjE2MDMyNkU6MUQyN0IyQTo2QUY4OUZERCIsInZpc2l0b3JfaWQiOiI4MTA4NjI4NjEwMDA1OTAxMjc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1c4fa28325adbda8691ddae5503c05176931c50dceb3ddbaa5cf2a1e7eab2063
hovercard-subject-tagissue:6102499231
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jangala-dev/devicecode-lua/353/issue_layout
twitter:imagehttps://opengraph.githubassets.com/00a585715e2878ab46d0ca62951348b03f8216bf61942da3b5e5c3c461e89c3b/jangala-dev/devicecode-lua/issues/353
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/00a585715e2878ab46d0ca62951348b03f8216bf61942da3b5e5c3c461e89c3b/jangala-dev/devicecode-lua/issues/353
og:image:altSummary Telemetry shows negative byte counts. Samos (BB7ZJW5MWK2TFJ) showed −2.0 GB of Wi-Fi on 17 Sep, and −5.35 GB across 7 LTE samples between 21 Sep and 11 Oct. Download graphs therefore under-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecpunt
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/jangala-dev/devicecode-lua git https://github.com/jangala-dev/devicecode-lua.git
octolytics-dimension-user_id44901909
octolytics-dimension-user_loginjangala-dev
octolytics-dimension-repository_id814022112
octolytics-dimension-repository_nwojangala-dev/devicecode-lua
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id814022112
octolytics-dimension-repository_network_root_nwojangala-dev/devicecode-lua
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/jangala-dev/devicecode-lua/issues/353#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjangala-dev%2Fdevicecode-lua%2Fissues%2F353
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjangala-dev%2Fdevicecode-lua%2Fissues%2F353
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=jangala-dev%2Fdevicecode-lua
Reloadhttps://github.com/jangala-dev/devicecode-lua/issues/353
Reloadhttps://github.com/jangala-dev/devicecode-lua/issues/353
Reloadhttps://github.com/jangala-dev/devicecode-lua/issues/353
jangala-devhttps://github.com/jangala-dev
devicecode-luahttps://github.com/jangala-dev/devicecode-lua
Codehttps://github.com/jangala-dev/devicecode-lua
Issues23 (23)https://github.com/jangala-dev/devicecode-lua/issues
Pull requests2 (2)https://github.com/jangala-dev/devicecode-lua/pulls
Discussionshttps://github.com/jangala-dev/devicecode-lua/discussions
Actionshttps://github.com/jangala-dev/devicecode-lua/actions
Projectshttps://github.com/jangala-dev/devicecode-lua/projects
Security and qualityhttps://github.com/jangala-dev/devicecode-lua/security
Insightshttps://github.com/jangala-dev/devicecode-lua/pulse
https://github.com/jangala-dev/devicecode-lua
New issuehttps://github.com/login?return_to=https://github.com/jangala-dev/devicecode-lua/issues/353
New issuehttps://github.com/login?return_to=https://github.com/jangala-dev/devicecode-lua/issues/353
metrics: negative byte counts from 32-bit wrap of 64-bit counters and counter resetshttps://github.com/jangala-dev/devicecode-lua/issues/353#top
bugSomething isn't workinghttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/cpunt
cpunthttps://github.com/cpunt
on Oct 29, 2026https://github.com/jangala-dev/devicecode-lua/issues/353#issue-6102499231
radio.lua#L43-L48https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/hal/drivers/radio.lua#L43-L48
radio.lua#L407-L414https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/hal/drivers/radio.lua#L407-L414
processing.lua#L201-L211https://github.com/jangala-dev/devicecode-lua/blob/a9691b9e2e6d43bf8631b0ab08bdbbe14fa6674b/src/services/metrics/processing.lua#L201-L211
cpunthttps://github.com/cpunt
bugSomething isn't workinghttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 29, 2026https://github.com/jangala-dev/devicecode-lua/issues/353#event-34599738938
https://github.com/cpunt
cpunthttps://github.com/cpunt
on Nov 2, 2026https://github.com/jangala-dev/devicecode-lua/issues/353#issuecomment-6581683182
#359https://github.com/jangala-dev/devicecode-lua/pull/359
cpunthttps://github.com/cpunt
on Nov 4, 2026https://github.com/jangala-dev/devicecode-lua/issues/353#event-35120205382
wifi: restore session telemetry and fix client stats sampling (#359)https://github.com/jangala-dev/devicecode-lua/commit/b181438f0c7cb45303a86959f6bd74cfbc755143
#359https://github.com/jangala-dev/devicecode-lua/pull/359
b181438https://github.com/jangala-dev/devicecode-lua/commit/b181438f0c7cb45303a86959f6bd74cfbc755143
https://github.com/cpunt
cpunthttps://github.com/cpunt
on Nov 9, 2026https://github.com/jangala-dev/devicecode-lua/issues/353#issuecomment-6746448597
#359https://github.com/jangala-dev/devicecode-lua/pull/359
cpunthttps://github.com/cpunt
completedhttps://github.com/jangala-dev/devicecode-lua/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 9, 2026https://github.com/jangala-dev/devicecode-lua/issues/353#event-35594147494
cpunthttps://github.com/cpunt
on Nov 9, 2026https://github.com/jangala-dev/devicecode-lua/issues/353#event-35594995299
lua: standardize indentation on tabs (#321)https://github.com/jangala-dev/devicecode-lua/commit/eca1eb88d78b7cc10f5f78a4dc3c5cbb0c8114b1
#321https://github.com/jangala-dev/devicecode-lua/pull/321
eca1eb8https://github.com/jangala-dev/devicecode-lua/commit/eca1eb88d78b7cc10f5f78a4dc3c5cbb0c8114b1
Sign up for freehttps://github.com/signup?return_to=https://github.com/jangala-dev/devicecode-lua/issues/353
Sign in to commenthttps://github.com/login?return_to=https://github.com/jangala-dev/devicecode-lua/issues/353
bugSomething isn't workinghttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.