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

btcpool如果不满1个小时,前端网页要显示实时算力有什么好的方法 #419

Open
oyangjian opened this issue Feb 17, 2020 · 1 comment

Comments

@oyangjian
Copy link

如果现在比如02:05, 这个小时刚过了5分钟,想在网页上显示实时算力,
目前使用直接数据库读取字段来计算,但是感觉波动非常大,btcpool有没有什么好的方法来处理
Thanks

@YihaoPeng
Copy link

此时可以从 mining_workers 表中读取1小时算力:

SELECT * FROM mining_workers WHERE puid = ? AND worker_id = 0

worker_id = 0的就是整个子账户的算力。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@oyangjian @YihaoPeng and others