Skip to content

fix(monitor): count only hardware interfaces to avoid inflated network rate - #440

Merged
vladelaina merged 1 commit into
vladelaina:mainfrom
zhiji-0424:main
Sep 4, 2026
Merged

vladelaina merged 1 commit into
vladelaina:mainfrom
zhiji-0424:main

Conversation

@zhiji-0424

Copy link
Copy Markdown
Contributor

fix(monitor): count only hardware interfaces to avoid inflated network rate

只计入硬件接口流量,避免重复计算。(此改动最终影响到任务栏托盘网速显示)

其他说明

使用了 AI 辅助。

更改内容

新增 2 条流量计算的过滤条件,修改后只计算硬件实际流量,不重复计算虚拟、隧道的流量。

效果

使用 测速网 测试多次,包括修改前与修改后。应用修改以后,任务栏图标 tooltip 显示的网速在数值上与 火绒安全软件 的流量悬浮窗基本一致(在 MB/s 的级别)。


🤝 Don't worry about perfection

We value your ideas and participation more than perfect code!

If there are any style, testing, or detail issues, we will help fix and polish them. Just submit it, and we'll handle the rest!


Thanks again! Happy to build this with you! 🙌

…k rate

只计入硬件接口流量,避免重复计算(最终影响到任务栏托盘网速显示)
@vladelaina
vladelaina merged commit 0fbfa2e into vladelaina:main Sep 4, 2026
@vladelaina

Copy link
Copy Markdown
Owner

@zhiji-0424 非常感谢!!!!这段时间在做 https://github.com/vladelaina/BongoCat 一直没有时间来看这块,感谢感谢!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants