mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-24 15:02:32 +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{
|
||||
TotalBytesRecv: totalBytesRecv,
|
||||
TotalBytesSent: totalBytesSent,
|
||||
TimeMillis: time.Now().UTC().UnixNano() / 1000,
|
||||
TimeMillis: time.Now().UTC().UnixNano() / int64(time.Millisecond),
|
||||
}
|
||||
return reply, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user