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

流量统计有问题吗 #46

Closed
jasonross opened this issue Aug 31, 2015 · 1 comment
Closed

流量统计有问题吗 #46

jasonross opened this issue Aug 31, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@jasonross
Copy link

TrafficInfo.java中,rcvTraffic = TrafficStats.getUidRxBytes(Integer.parseInt(uid));又去调用rcvTraffic = Long.parseLong(rafRcv.readLine()),那前面调用是不是没意义。

@andrewleo
Copy link
Member

这个是我们的疏忽,上个版本修改为用API获取流量后,之前的代码忘记删除了。
使用官方API即可:getUidRxBytes

@andrewleo andrewleo added the bug label Sep 2, 2015
@andrewleo andrewleo self-assigned this Sep 2, 2015
@andrewleo andrewleo added this to the 2.4 milestone Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants