Преглед изворни кода

Do not right justify the database reading progress percent counter

There's an odd space most for most of the progress, which will never be
actually seen filled by the 100%. Seems slightly better to just not
indent it.
Guillem Jover пре 17 година
родитељ
комит
3582817fd9
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      debian/changelog
  2. 1 1
      lib/progress.c

+ 1 - 0
debian/changelog

@@ -124,6 +124,7 @@ dpkg (1.15.1) UNRELEASED; urgency=low
   * Remove obsolete --force-auto-select dpkg option.
   * Remove obsolete priorities support from dpkg.
   * Remove obsolete 822-date program.
+  * Do not right justify the database reading progress percent counter.
 
   [ Frank Lichtenheld ]
   * Dpkg::Version: Remove unnecessary function next_elem which just

+ 1 - 1
lib/progress.c

@@ -61,7 +61,7 @@ progress_step(struct progress *progress)
 
 	progress->last_percent = cur_percent;
 
-	printf("\r%s%3d%%", progress->text, cur_percent);
+	printf("\r%s%d%%", progress->text, cur_percent);
 }
 
 void