Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复内核版本低于2.6.33时取不到net.if.speed.bits值的问题 #15

Merged
merged 1 commit into from
Dec 20, 2018

Conversation

mdh67899
Copy link
Contributor

@mdh67899 mdh67899 commented Jun 20, 2018

pr 9 中实现了抓取网卡参数: net.if.speed.bits,net.if.in.percent,net.if.out.percent的功能,当内核版本低于2.6.33时是不存在/sys/class/net/<nic>/speed文件的,doc in here, 此时无法获取到网卡的真实值

当内核版本低于2.6.33时, 可以使用ethtool命令来实现这个功能,已经在线上机器CentOS 5.5 Kernel version 2.6.18的环境中验证生效

…ce in/out speed percent when kernel version lower than 2.6.33
@mdh67899 mdh67899 changed the title 修复内核版本低于2.16.33时取不到net.if.speed.bits值的问题 修复内核版本低于2.6.33时取不到net.if.speed.bits值的问题 Jun 25, 2018
@UlricQin UlricQin merged commit 7494d04 into toolkits:master Dec 20, 2018
@mdh67899 mdh67899 deleted the nic-stat branch December 20, 2018 06:04
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