Skip to content

Commit f267a03

Browse files
committed
chore: drop stale ~1s wording from duplicate window comments
1 parent 16c4f08 commit f267a03

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/zeroconf/_listener.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def _process_datagram_at_time(
251251
# _DUPLICATE_PACKET_SUPPRESSION_INTERVAL` so a cache miss never
252252
# triggers the branch even when `now` is small (time.monotonic
253253
# is allowed to start near zero, leaving `now - INTERVAL`
254-
# negative for the first ~1s after boot). Only non-QU payloads
254+
# negative for the first interval after boot). Only non-QU payloads
255255
# are cached, so any hit here is safe to suppress without re-
256256
# checking has_qu_question.
257257
recent_time = self._recent_packets.get(data, -1e30)

‎tests/test_listener.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def test_recent_packets_miss_with_small_now_is_not_suppressed(zc: Zeroconf) -> N
389389
"""A cache miss must not trigger suppression when `now` is below the suppression interval."""
390390
# time.monotonic() can start near zero on freshly booted systems, so
391391
# `now - _DUPLICATE_PACKET_SUPPRESSION_INTERVAL` is negative for the
392-
# first second of process lifetime. A 0.0 default on the recency
392+
# first interval of process lifetime. A 0.0 default on the recency
393393
# dict would let any negative `now - INTERVAL` satisfy the compare
394394
# and suppress legitimate traffic.
395395
zc.registry.async_add(

0 commit comments

Comments
 (0)