aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/admin.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-29 00:01:40 +0800
committerobscuren <geffobscura@gmail.com>2015-05-29 00:01:40 +0800
commitf082c1b8959c1c729a4b62d6ff101d7569e8ba0f (patch)
treed19fdc2e8982a64d93612677dc2722dd41c8dbd3 /cmd/geth/admin.go
parent70867904a0255bd044851585a9ad2dc34391ced2 (diff)
parentd51d74eb55535db7670ad336d186ea64c6a2ff81 (diff)
downloaddexon-f082c1b8959c1c729a4b62d6ff101d7569e8ba0f.tar
dexon-f082c1b8959c1c729a4b62d6ff101d7569e8ba0f.tar.gz
dexon-f082c1b8959c1c729a4b62d6ff101d7569e8ba0f.tar.bz2
dexon-f082c1b8959c1c729a4b62d6ff101d7569e8ba0f.tar.lz
dexon-f082c1b8959c1c729a4b62d6ff101d7569e8ba0f.tar.xz
dexon-f082c1b8959c1c729a4b62d6ff101d7569e8ba0f.tar.zst
dexon-f082c1b8959c1c729a4b62d6ff101d7569e8ba0f.zip
Merge branch 'release/0.9.26'
Diffstat (limited to 'cmd/geth/admin.go')
-rw-r--r--cmd/geth/admin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go
index 8f9a009d7..f0be444c6 100644
--- a/cmd/geth/admin.go
+++ b/cmd/geth/admin.go
@@ -262,8 +262,8 @@ func (js *jsre) setHead(call otto.FunctionCall) otto.Value {
}
func (js *jsre) downloadProgress(call otto.FunctionCall) otto.Value {
- current, max := js.ethereum.Downloader().Stats()
- v, _ := call.Otto.ToValue(fmt.Sprintf("%d/%d", current, max))
+ pending, cached := js.ethereum.Downloader().Stats()
+ v, _ := call.Otto.ToValue(map[string]interface{}{"pending": pending, "cached": cached})
return v
}