Commit 3dc43271 authored by 李伟@五瓣科技's avatar 李伟@五瓣科技

fix percent

parent c00775bd
......@@ -501,7 +501,7 @@ func (web *WebServicer) TxsHandler(w http.ResponseWriter, r *http.Request) {
id := uuid.New()
consTxNum := 0
//consTxNum := 0
total := int(params.TxCount)
......@@ -509,12 +509,12 @@ func (web *WebServicer) TxsHandler(w http.ResponseWriter, r *http.Request) {
total = total + 1
}
consTxNum = total / (batchTxHashSize * batchTxSize)
if total%(batchTxHashSize*batchTxSize) != 0 {
consTxNum = consTxNum + 1
}
// consTxNum = total / (batchTxHashSize * batchTxSize)
// if total%(batchTxHashSize*batchTxSize) != 0 {
// consTxNum = consTxNum + 1
// }
SetSendRecord(id, SendRecord{TotalConsTx: int64(consTxNum)})
SetSendRecord(id, SendRecord{TotalConsTx: int64(total)})
go func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment