aboutsummaryrefslogtreecommitdiffstats
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
parent271fb20ecb48944692bdb4e7f91be9b90506981b (diff)
downloadgo-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.gz
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.bz2
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.lz
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.xz
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.tar.zst
go-tangerine-c4af70d0cc213b5fd906a385cdb2895268525ef7.zip
cmd/geth: round the import ETA before converting to string
-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
}