Skip to content

Commit

Permalink
fix: formula error
Browse files Browse the repository at this point in the history
  • Loading branch information
uerax committed Mar 22, 2024
1 parent d3eb5c2 commit 3ff08d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/qubic.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (t *Utils) QubicProfit(token string) {

sol := float64(it) * float64(qb.SolutionsPerHour) / float64(qb.EstimatedIts)

msg := fmt.Sprintf("当前全网算力: *%d it/s*\n当前出块速度: *%d / h*\n当前平均分: *%.f*\n\n本周预计平均分: *%.f*\n\n%d算力预计1小时出块: *%.3f*\n%d算力预计1天出块: *%.3f*\n%d算力预计7天出块: *%.3f*\n\n%d算力当前预计出块: *%.3f*\n\n单个块预计总收益: *%.f qubic*\nEp1单块预计收益: *%.f qubic*\nEp2单块预计收益: *%.f qubic*\n\n纪元预计总收益: *%d qubic*\nEp1预计总收益: *%d qubic*\nEp2预计总收益: *%d qubic*", qb.EstimatedIts, qb.SolutionsPerHour, qb.AverageScore, totalEarning, it, sol, it, sol*24, it, sol*24*7, it, float64(totalHours)*sol, earn1 + earn2, earn1, earn2, int(float64(totalHours) * sol * (earn1 + earn2)), int(float64(totalHours) * sol * earn1), int(float64(totalHours) * sol * earn2))
msg := fmt.Sprintf("当前全网算力: *%d it/s*\n当前出块速度: *%d / h*\n当前平均分: *%.f*\n\n本周预计平均分: *%.f*\n\n%d算力预计1小时出块: *%.3f*\n%d算力预计1天出块: *%.3f*\n%d算力预计7天出块: *%.3f*\n\n%d算力当前预计出块: *%.3f*\n\n单个块预计总收益: *%.f qubic*\nEp1单块预计收益: *%.f qubic*\nEp2单块预计收益: *%.f qubic*\n\n纪元预计总收益: *%d qubic*\nEp1预计总收益: *%d qubic*\nEp2预计总收益: *%d qubic*", qb.EstimatedIts, qb.SolutionsPerHour, qb.AverageScore, totalEarning, it, sol, it, sol*24, it, sol*24*7, it, float64(totalHours)*sol, earn1 + earn2, earn1, earn2, int(sol * 24 * 7 * (earn1 + earn2)), int(sol * 24 * 7 * earn1), int(sol * 24 * 7 * earn2))

wait.Wait()
priceMsg := fmt.Sprintf("\n\n当前Qubic价格: *%.12f U*\n单个块预计收益: *%.3f U*\n纪元预计总收益: *%.3f U*\n\nEp1预计收益: *%.3f U*\nEp2预计收益: *%.3f U*", price, (earn1 + earn2)*price, (earn1 + earn2)*price*sol*24*7, earn1*price*sol*24*7, earn2*price*sol*24*7)
Expand Down

0 comments on commit 3ff08d0

Please sign in to comment.