Changeset - e353041b080a
[Not reviewed]
default
0 1 0
Drew Perttula - 7 years ago 2018-04-26 08:23:03
drewp@bigasterisk.com
more collector startup grace period
Ignore-this: d58f2064b2aa91404e567b6dd6b65c78
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/collector/collector.py
Show inline comments
 
@@ -100,13 +100,13 @@ class Collector(Generic[ClientType, Clie
 
            else:
 
                out[(d, da)] = v
 
        return out
 

	
 
    def _warnOnLateRequests(self, client, now, sendTime):
 
        requestLag = now - sendTime
 
        if requestLag > .1 and now > self.initTime + 5:
 
        if requestLag > .1 and now > self.initTime + 10:
 
            log.warn('collector.setAttrs from %s is running %.1fms after the request was made',
 
                     client, requestLag * 1000)
 

	
 
    def _merge(self, lastRequests):
 
        deviceAttrs = {} # device: {deviceAttr: value}       
 
        for _, lastSettings in lastRequests:
0 comments (0 inline, 0 general)