get a faster response from a change
in the previous implementation, the row-waiting-for-answer class was removed only on the next poll. this should happen more quickly. + remove some print statements
This commit is contained in:
@ -274,7 +274,7 @@ class InfluxGraph(HandlerBase):
|
||||
pass # skip not existing or already removed items
|
||||
# add remaining curves
|
||||
curves.extend(curve_dict.values())
|
||||
print(key, curves)
|
||||
# print(key, curves)
|
||||
group['curves'] = curves
|
||||
result.append(group)
|
||||
return result
|
||||
@ -370,8 +370,8 @@ class InfluxGraph(HandlerBase):
|
||||
if len(curve) > l:
|
||||
del curve[:l]
|
||||
else:
|
||||
if fullminute:
|
||||
print('R', key)
|
||||
# if fullminute:
|
||||
# print('R', key)
|
||||
result.pop(key)
|
||||
# print('poll', sum(len(c) for c in result.values()), self.last_time)
|
||||
if len(result) > 0:
|
||||
|
Reference in New Issue
Block a user