From d5b6173e5769e919aea42f01b2f369653d3a262c Mon Sep 17 00:00:00 2001 From: josch Date: Mon, 8 Oct 2012 08:55:02 +0200 Subject: [PATCH] start counting from 1 and not 0 --- find_reduced.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/find_reduced.py b/find_reduced.py index 73fab3d..fef289a 100755 --- a/find_reduced.py +++ b/find_reduced.py @@ -147,10 +147,10 @@ for i, (cat, pkg, ver, rev) in enumerate(pkgnames): debian_deps["%s/%s"%(cat,pkg)] = list(set(ddeps)) count +=1 - sys.stderr.write("\rFinding reduced dependencies: %d/%d, found %d. Estimated time left: %s h"%(i, len(pkgnames), count, estimate_remaining_time(before, len(pkgnames), i))) + sys.stderr.write("\rFinding reduced dependencies: %d/%d, found %d. Estimated time left: %s h"%(i+1, len(pkgnames), count, estimate_remaining_time(before, len(pkgnames), i))) sys.stdout.flush() -sys.stderr.write("\rFinding reduced dependencies: %d/%d, found %d. Estimated time left: %s h\n"%(i, len(pkgnames), count, estimate_remaining_time(before, len(pkgnames), i))) +sys.stderr.write("\rFinding reduced dependencies: %d/%d, found %d. Estimated time left: %s h\n"%(i+1, len(pkgnames), count, estimate_remaining_time(before, len(pkgnames), i))) missing_deb_mappings = list()