Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit d618801

Browse files
committed
load last values if no data in first minute
1 parent 4b38aaa commit d618801

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PyTangoArchiving/reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,8 @@ def get_attribute_values_from_any(self, attribute, start_date,
11551155
'%f seconds' % (len(fallback),fn.now()-tf))
11561156

11571157
if not len(values) or not len(values[0]) or values[0][0] > (
1158-
start_time + max((600,(stop_time-start_time)/1080.))):
1159-
self.log.warning('No %s values at %s, checking lasts' % (
1158+
start_time + 60.):
1159+
self.log.warning('No %s values at %s, loading previous values' % (
11601160
attribute, fn.time2str(start_time)))
11611161
lasts = self.load_last_values(attribute, epoch=start_time)
11621162
lasts = [v for v in lasts.values() if v is not None and len(v)]

0 commit comments

Comments
 (0)