Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/xlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 838362f..fad5ae8 100644
--- a/init.lua
+++ b/init.lua
@@ -284,13 +284,14 @@ do
end
-- Print remaining time when running or total time when done.
if (percent < barLength) then
- io.write('ETA: ' .. formatTime(remaining))
+ tm = ' ETA: ' .. formatTime(remaining)
else
- io.write('Tot: ' .. formatTime(elapsed))
+ tm = ' Tot: ' .. formatTime(elapsed)
end
- io.write(' | Step: ' .. formatTime(step))
+ tm = tm .. ' | Step: ' .. formatTime(step)
+ io.write(tm)
-- go back to center of bar, and print progress
- for i=1,6+#tm+barLength/2 do io.write('\b') end
+ for i=1,5+#tm+barLength/2 do io.write('\b') end
io.write(' ', current, '/', goal, ' ')
-- reset for next bar
if (percent == barLength) then