mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-25 07:22:31 +00:00
Return milliseconds in getnettotals RPC.
This was returning microsecond instead of milliseconds.
This commit is contained in:
parent
a39f4a0698
commit
1716136f62
@ -984,7 +984,7 @@ func handleGetNetTotals(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) {
|
|||||||
reply := &btcjson.GetNetTotalsResult{
|
reply := &btcjson.GetNetTotalsResult{
|
||||||
TotalBytesRecv: totalBytesRecv,
|
TotalBytesRecv: totalBytesRecv,
|
||||||
TotalBytesSent: totalBytesSent,
|
TotalBytesSent: totalBytesSent,
|
||||||
TimeMillis: time.Now().UTC().UnixNano() / 1000,
|
TimeMillis: time.Now().UTC().UnixNano() / int64(time.Millisecond),
|
||||||
}
|
}
|
||||||
return reply, nil
|
return reply, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user