From 1716136f62a15b38f36280be52cef428eee6dade Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 5 Feb 2014 11:25:40 -0600 Subject: [PATCH] Return milliseconds in getnettotals RPC. This was returning microsecond instead of milliseconds. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 6dab39d4..b7e65e1a 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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 }