fixed potential bug in predict.py

pull/73/head
Adam Greig 2010-05-30 23:55:47 +01:00
rodzic a8617ac690
commit d4b88b5f42
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -5,6 +5,7 @@ pred_binary = './pred_src/pred'
# Modules from the Python standard library.
import datetime
import time as timelib
import math
import sys
import os
@ -312,7 +313,7 @@ def write_file(output_format, data, window, mintime, maxtime):
time_per_var = time_elapsed / num_vars
total_time = num_times * 3 * time_per_var
time_left = total_time - time_elapsed
time_left = time.strftime('%M:%S', time.gmtime(time_left.seconds))
time_left = timelib.strftime('%M:%S', timelib.gmtime(time_left.seconds))
update_progress(gfs_percent=int(
10 +