aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/admin.go
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/admin.go
parent271fb20ecb48944692bdb4e7f91be9b90506981b (diff)
downloaddexon-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar
dexon-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.gz
dexon-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.bz2
dexon-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.lz
dexon-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.xz
dexon-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.zst
dexon-c4af70d0cc213b5fd906a385cdb2895268525ef7.zip
cmd/geth: round the import ETA before converting to string
Diffstat (limited to 'cmd/geth/admin.go')
-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
}