Return milliseconds in getnettotals RPC.
This was returning microsecond instead of milliseconds.
This commit is contained in:
parent
a39f4a0698
commit
1716136f62
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue