We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcafdc1 commit 5986bf6Copy full SHA for 5986bf6
zeroconf/__init__.py
@@ -478,7 +478,7 @@ def suppressed_by_answer(self, other):
478
and if its TTL is at least half of this record's."""
479
return self == other and other.ttl > (self.ttl / 2)
480
481
- def get_expiration_time(self, percent: float) -> float:
+ def get_expiration_time(self, percent: int) -> float:
482
"""Returns the time at which this record will have expired
483
by a certain percentage."""
484
return self.created + (percent * self.ttl * 10)
0 commit comments