# HG changeset patch # User drewp@bigasterisk.com # Date 2023-05-23 21:44:54 # Node ID e22c7d15a5044584badbcf2ec000ccb38a249403 # Parent acf1b68d031a15e37b344077919cfef1ac15afdd logging fix diff --git a/light9/collector/collector.py b/light9/collector/collector.py --- a/light9/collector/collector.py +++ b/light9/collector/collector.py @@ -133,13 +133,13 @@ class Collector: outputAttrsByDevice = self._convertToOutputAttrsPerDevice(deviceAttrs) pendingOut = self._flattenDmxOutput(outputAttrsByDevice) - dt1 = time.time() - now + t2 = time.time() self._updateOutputs(pendingOut) - dt2 = time.time() - dt1 - if dt1 > .030 or dt2 > .030: - log.warning("slow setAttrs: prepare %.1fms -> updateOutputs %.1fms" % (dt1 * 1000, dt2 * 1000)) + t3 = time.time() + if t2 - now > .030 or t3 - t2 > .030: + log.warning("slow setAttrs: prepare %.1fms -> updateOutputs %.1fms" % ((t2 - now) * 1000, (t3 - t2) * 1000)) def _warnOnLateRequests(self, client, now, sendTime): requestLag = now - sendTime