diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-08-25 18:57:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-08-25 22:48:47 +0800 |
commit | 17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d (patch) | |
tree | 946f0e2478d8002194c09705e638c74b9d3a8ec5 /cmd | |
parent | 47a7fe5d22fe2a6be783f6576070814fe951eaaf (diff) | |
download | go-tangerine-17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d.tar go-tangerine-17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d.tar.gz go-tangerine-17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d.tar.bz2 go-tangerine-17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d.tar.lz go-tangerine-17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d.tar.xz go-tangerine-17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d.tar.zst go-tangerine-17f65cd1e5e0fea6e4f7b96c60767aaa0ada366d.zip |
eth: update metrics collection to handle eth/62 algos
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/monitorcmd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/geth/monitorcmd.go b/cmd/geth/monitorcmd.go index a7c099532..a45d29b8f 100644 --- a/cmd/geth/monitorcmd.go +++ b/cmd/geth/monitorcmd.go @@ -289,7 +289,7 @@ func updateChart(metric string, data []float64, base *int, chart *termui.LineCha } } unit, scale := 0, 1.0 - for high >= 1000 { + for high >= 1000 && unit+1 < len(dataUnits) { high, unit, scale = high/1000, unit+1, scale*1000 } // If the unit changes, re-create the chart (hack to set max height...) |