do not calculate list of present full pixbufs if the minimal verbosity is not opted...
authorGuillaume Cottenceau <gcottenc@gmail.com>
Sun, 29 Nov 2009 21:19:56 +0000 (22:19 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Sun, 29 Nov 2009 21:19:56 +0000 (22:19 +0100)
bin/booh-classifier

index 1edbc4a..c54b420 100644 (file)
@@ -256,11 +256,13 @@ class InterruptedLoading < Exception
 end
 
 def show_pixbufs_present
-    out = 'Full pixbufs ['
-    for entry in $allentries
-        out += entry.pixbuf_full_present? ? 'F' : '.'
+    if 3 <= $verbose_level
+        out = 'Full pixbufs ['
+        for entry in $allentries
+            out += entry.pixbuf_full_present? ? 'F' : '.'
+        end
+        msg 3, out + ']'
     end
-    msg 3, out + ']'
 end
 
 class Entry