mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
parent
d15b882929
commit
d70d5a6521
|
@ -685,13 +685,13 @@ class DLManager(Process):
|
||||||
total_used = (num_shared_memory_segments - total_avail) * (self.analysis.biggest_chunk / 1024 / 1024)
|
total_used = (num_shared_memory_segments - total_avail) * (self.analysis.biggest_chunk / 1024 / 1024)
|
||||||
|
|
||||||
if runtime and processed_chunks:
|
if runtime and processed_chunks:
|
||||||
rt_hours, runtime = int(runtime // 3600), runtime % 3600
|
|
||||||
rt_minutes, rt_seconds = int(runtime // 60), int(runtime % 60)
|
|
||||||
|
|
||||||
average_speed = processed_chunks / runtime
|
average_speed = processed_chunks / runtime
|
||||||
estimate = (num_chunk_tasks - processed_chunks) / average_speed
|
estimate = (num_chunk_tasks - processed_chunks) / average_speed
|
||||||
hours, estimate = int(estimate // 3600), estimate % 3600
|
hours, estimate = int(estimate // 3600), estimate % 3600
|
||||||
minutes, seconds = int(estimate // 60), int(estimate % 60)
|
minutes, seconds = int(estimate // 60), int(estimate % 60)
|
||||||
|
|
||||||
|
rt_hours, runtime = int(runtime // 3600), runtime % 3600
|
||||||
|
rt_minutes, rt_seconds = int(runtime // 60), int(runtime % 60)
|
||||||
else:
|
else:
|
||||||
hours = minutes = seconds = 0
|
hours = minutes = seconds = 0
|
||||||
rt_hours = rt_minutes = rt_seconds = 0
|
rt_hours = rt_minutes = rt_seconds = 0
|
||||||
|
|
Loading…
Reference in a new issue