eth: update metrics collection to handle eth/62 algos

This commit is contained in:
Péter Szilágyi committed 2015-08-25 17:48:47 +03:00
1 parent 47a7fe5d22
commit 17f65cd1e5
7 files changed
+160 -36

No files matched your search

+1 -1
View File
@@ -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...)