even more readeable

This commit is contained in:
Gaël Honorez
2024-01-02 18:35:30 +01:00
parent cfe4c70a32
commit 364660a7f5

View File

@@ -62,6 +62,7 @@ class SubStackTask:
days, seconds = divmod(seconds, 86400)
hours, seconds = divmod(seconds, 3600)
minutes, seconds = divmod(seconds, 60)
seconds = round(seconds)
parts = []
if days > 0:
@@ -100,7 +101,7 @@ class SubStackTask:
while sleep_seconds > 0:
# Check if the remaining time is a multiple of 3600 seconds
formatted_duration = self.format_duration(sleep_seconds)
LOG.info(f"Waiting for {formatted_duration} seconds for next scan")
LOG.info(f"Waiting for {formatted_duration} for next scan")
# Wait for some time before checking again
await asyncio.sleep(min(sleep_seconds, 5 * 60))