shadowsocks/shadowsocks-hub-api

no traffic update

rchen9012 opened this issue · 5 comments

everything works but no traffic update to database table

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.

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

fixed the shadowsocks-rest-api bug.

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

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...