aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-10 23:07:23 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-10 23:07:23 +0800
commitc4af70d0cc213b5fd906a385cdb2895268525ef7 (patch)
treee1b9d0cf226ffa6239c49d316135e22844d40650 /cmd/geth
parent271fb20ecb48944692bdb4e7f91be9b90506981b (diff)
downloadgo-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.gz
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.zst
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.zip
cmd/geth: round the import ETA before converting to string
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go
index 7bf23829a..4f22110ad 100644
--- a/cmd/geth/admin.go
+++ b/cmd/geth/admin.go
@@ -330,7 +330,7 @@ func (js *jsre) syncProgress(call otto.FunctionCall) otto.Value {
"pending": pending,
"cached": cached,
"importing": importing,
- "estimate": eta.String(),
+ "estimate": (eta / time.Second * time.Second).String(),
})
return v
}