@cryptotaxi247 / netdata-1 / commits / 322e66762

invalid literal for float(): NN.NNt (#8013)

* invalid literal for float(): NN.NNt

Blaine Schanfeldt committed Feb 10, 2020 at 00:52 UTC 322e66762f29d495ba0bb56ab7aec3b53e03e90f
1 file changed +2
collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py
+2
@@ -513,6 +513,8 @@ def convert_index_store_size_to_bytes(size):
513 return round(float(size[:-2]) * 1024 * 1024)
514 elif size.endswith('gb'):
515 return round(float(size[:-2]) * 1024 * 1024 * 1024)
516 + elif size.endswith('tb'):
517 + return round(float(size[:-2]) * 1024 * 1024 * 1024 * 1024)
518 elif size.endswith('b'):
519 return round(float(size[:-1]))
520 return -1