X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/autoys/blobdiff_plain/cf3c562e24f5b8bae6e55a62d66a10de2641f520..00beb9e518942f3a4415498281a8d66639735274:/gremlin/gremlin.in diff --git a/gremlin/gremlin.in b/gremlin/gremlin.in index af4da27..cca2789 100644 --- a/gremlin/gremlin.in +++ b/gremlin/gremlin.in @@ -41,7 +41,7 @@ import shutil as SH import optparse as OP import threading as TH import shlex as L -from math import sqrt +from math import sqrt, ceil from contextlib import contextmanager ## eyeD3 tag fettling. @@ -247,7 +247,7 @@ class ProgressEyecandy (object): ## Work out -- well, guess -- the time remaining. if cur: t = T.time() - eta = me._fmt_time((t - me._start)*(max - cur)/cur) + eta = me._fmt_time(ceil((t - me._start)*(max - cur)/cur)) else: eta = '???'