Repository navigation
fix(monitor): count only hardware interfaces to avoid inflated network rate - #440
Merged
Merged
Conversation
…k rate 只计入硬件接口流量,避免重复计算(最终影响到任务栏托盘网速显示)
Owner
|
@zhiji-0424 非常感谢!!!!这段时间在做 https://github.com/vladelaina/BongoCat 一直没有时间来看这块,感谢感谢!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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! 🙌