progress bar based on "step" in log files
This commit is contained in:
parent
9303e93b9e
commit
bf76ce01e9
1 changed files with 2 additions and 2 deletions
|
@ -219,9 +219,9 @@ def get_progress_from_logfile(filename):
|
||||||
with open(filename, "r") as f:
|
with open(filename, "r") as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if " operation " in line:
|
if "Step " in line:
|
||||||
try:
|
try:
|
||||||
splitted_line = line.split(" operation ")[1]
|
splitted_line = line.split("Step ")[1]
|
||||||
splitted_line = splitted_line.split(":")[0]
|
splitted_line = splitted_line.split(":")[0]
|
||||||
current_operation = int(splitted_line.split("/")[0])
|
current_operation = int(splitted_line.split("/")[0])
|
||||||
total_operations = int(splitted_line.split("/")[1])
|
total_operations = int(splitted_line.split("/")[1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue