Fix time conversion bug in blackbox command.

This commit is contained in:
Solderpunk 2020-06-13 15:36:05 +02:00
parent afa67f40ae
commit 76d7d23a2a
1 changed files with 1 additions and 1 deletions

View File

@ -1459,7 +1459,7 @@ current gemini browsing session."""
# Compute flight time
now = time.time()
delta = now - self.log["start_time"]
hours, remainder = divmod(delta, 36060)
hours, remainder = divmod(delta, 36000)
minutes, seconds = divmod(remainder, 60)
# Count hosts
ipv4_hosts = len([host for host in self.visited_hosts if host[0] == socket.AF_INET])