(td: Optional[timedelta])
| 81 | |
| 82 | |
| 83 | def fmt_td(td: Optional[timedelta]) -> str: |
| 84 | if td is None: |
| 85 | return "-" |
| 86 | total_seconds = int(td.total_seconds()) |
| 87 | hours, rem = divmod(total_seconds, 3600) |
| 88 | minutes, seconds = divmod(rem, 60) |
| 89 | return f"{hours:02d}:{minutes:02d}:{seconds:02d}" |
| 90 | |
| 91 | |
| 92 | async def _axfr_check_root(domain: str, dns_server: Optional[str], timeout: float) -> Dict[str, Any]: |
no outgoing calls