From 322e66762f29d495ba0bb56ab7aec3b53e03e90f Mon Sep 17 00:00:00 2001 From: Blaine Schanfeldt Date: Mon, 10 Feb 2020 00:52:43 -0800 Subject: invalid literal for float(): NN.NNt (#8013) * invalid literal for float(): NN.NNt --- collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'collectors') diff --git a/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py b/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py index 8aaa08583b..a759de105d 100644 --- a/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py +++ b/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py @@ -513,6 +513,8 @@ def convert_index_store_size_to_bytes(size): return round(float(size[:-2]) * 1024 * 1024) elif size.endswith('gb'): return round(float(size[:-2]) * 1024 * 1024 * 1024) + elif size.endswith('tb'): + return round(float(size[:-2]) * 1024 * 1024 * 1024 * 1024) elif size.endswith('b'): return round(float(size[:-1])) return -1 -- cgit v1.2.3