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

no traffic update #6

Closed
rchen9012 opened this issue Aug 10, 2018 · 5 comments
Closed

no traffic update #6

rchen9012 opened this issue Aug 10, 2018 · 5 comments

Comments

@rchen9012
Copy link

everything works but no traffic update to database table

@Eggham
Copy link
Collaborator

Eggham commented Aug 10, 2018

Could you please provide more details?

You may also try shadowsocks-hub https://github.com/shadowsocks/shadowsocks-hub.git. It has web ui that can display traffic chart.

@rchen9012
Copy link
Author

I use curl command to check out traffic stored in database. It seem like shadowsocks-hub-api is not getting any traffic usage update from shadowsocks-rest-api. Just checked shadowsocks-rest-api returned 500 error.
9e2536ab-bce9-47fa-9a42-9d1b45a57c73

@Eggham
Copy link
Collaborator

Eggham commented Aug 10, 2018

fixed the shadowsocks-rest-api bug.

@Eggham Eggham closed this as completed Aug 10, 2018
@rchen9012
Copy link
Author

sorry for late reply. I want to take more time to test the fix. It's confirm working. can you please explain when the traffic request is sent to shadowshocks-rest-api? I noticed if not traffic, database will not get updated. only update when traffic goes through vpn. Also "lastmetterreading" is the same as "usage" if so why need both fields?

screen shot 2018-08-14 at 12 53 11 am

@Eggham
Copy link
Collaborator

Eggham commented Aug 14, 2018

Thanks for the confirmation. It's good to know it's working as expected.

Traffic request is sent to shadowsocks-rest-api periodically. But the database will be updated only if there is new traffic (preventing saving duplicate traffic data).

lastmaterreadingis not always the same as the usage, bug very often they would be the same...

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

No branches or pull requests

2 participants