mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 19:25:52 +00:00
fixes #154: Go analytics channels showed single 'ch?' because channelHash is a JSON number (from decoder.js) but the Go struct declared it as string. json.Unmarshal failed on every packet. Changed to interface{} with proper type conversion. Also fixed chKey to use hash (not name) for grouping, matching Node.js. fixes #155: uniqueNodes in topology analytics used hop resolution count (phantom hops inflated it). Both Node.js and Go now use db.getStats().totalNodes (7-day active window), matching /api/stats. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>