]> git.itanic.dy.fi Git - emerge-timer/commitdiff
list_pretended: Don't print total time if there is only one package
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Mon, 29 Aug 2011 10:40:06 +0000 (13:40 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Mon, 29 Aug 2011 10:40:06 +0000 (13:40 +0300)
emerge-timer.py

index f2885c164ab5029c79878105aeb7af0bbd8ab7b4..618f8593fb5c67c4ff8c01ce6106a91d20fcda64 100755 (executable)
@@ -338,7 +338,7 @@ def list_pretended(f):
         print "\n"
 
 
-    if all_time != 0:
+    if len(packages) > 1:
         print("Total emerge time of " + green_start + str(len(packages)) +
               color_stop + " packages:"),
         organize_times(all_time)