Fix wrong data in jsonfile generated by osrf writer

The redundant commit of backend leds to the addition of wrong data that
usage is None and period is repeated.
{"usage": {}, "period": {"begin": "xxxx", "end": "xxxx"}
Closes-bug: #1516968

Change-Id: Ifee499bc645f30d0ffcc53c2e2c9d05587e76940
This commit is contained in:
zhangguoqing 2017-11-23 01:00:32 +00:00
parent e5e90e8813
commit c7ba8dace9
1 changed files with 0 additions and 1 deletions

View File

@ -144,7 +144,6 @@ class BaseReportWriter(object):
def append(self, data, start, end):
# FIXME we should use the real time values
if self.usage_end is not None and start >= self.usage_end:
self._commit()
self.usage_start = None
if self.usage_start is None: