even more readeable
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user