From 059fcc028dd7355e9d7645181b5f5c2f0e926fcd Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Sun, 25 Jun 2017 00:33:03 -0400 Subject: [PATCH] Zero size file bugfix --- dvc/progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/progress.py b/dvc/progress.py index f4026db3a..89b51277b 100644 --- a/dvc/progress.py +++ b/dvc/progress.py @@ -63,7 +63,7 @@ class Progress(object): percent = "?% " else: total = int(total) - progress = int((100 * current)/total) if current <= total else 100 + progress = int((100 * current)/total) if current < total else 100 percent = str(progress) + "% " num = "({}/{}): ".format(self._n_finished + 1, self._n_total)