Return milliseconds in getnettotals RPC.

This was returning microsecond instead of milliseconds.
This commit is contained in:
Dave Collins 2014-02-05 11:25:40 -06:00
parent a39f4a0698
commit 1716136f62

View file

@ -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
}