Explorar el Código

Fix progress info.

master
Alard hace 11 años
padre
commit
763e760d40
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      megawarc

+ 1
- 1
megawarc Ver fichero

@@ -95,7 +95,7 @@ class ProgressInfo(object):
percentage = int(float(self._current) / float(self._maximum) * 100)
if self._maximum < 0:
# count down
percentage = -percentage
percentage = 100-percentage
percentage = max(0, min(100, percentage))
if self._previous_percentage != percentage:
self._previous_percentage = percentage


Cargando…
Cancelar
Guardar