Commit dd780789 authored by Georgios Dagkakis's avatar Georgios Dagkakis

plugin fixed not to crush when we run for infinite time

parent da87466a
......@@ -6,6 +6,8 @@ class PostProcessQueueStatistics(plugin.OutputPreparationPlugin, TimeSupportMixi
"""
def postprocess(self, data):
self.initializeTimeSupport(data)
result = data['result']['result_list'][-1]
......@@ -26,6 +28,7 @@ class PostProcessQueueStatistics(plugin.OutputPreparationPlugin, TimeSupportMixi
if obj.get('family') == self.configuration_dict.get('family', 'Buffer'):
series.append({
"label": obj.get('name', obj['id']),
"data": [(self.convertToTimeStamp(time) * 1000, value) for (time, value) in obj['results']['wip_stat_list'][0]]
"data": [(self.convertToTimeStamp(time) * 1000, value) for (time, value) in obj['results']['wip_stat_list'][0]
if not time==float("inf")]
})
return data
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment