[babl] babl-cache: avoid %'ing by 0



commit fd10677adc7202bdf8c76da8e23ca403aa2bfd7d
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun Nov 20 13:28:43 2016 +0100

    babl-cache: avoid %'ing by 0

 babl/babl-cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-cache.c b/babl/babl-cache.c
index 4a26db0..926d9f1 100644
--- a/babl/babl-cache.c
+++ b/babl/babl-cache.c
@@ -209,7 +209,7 @@ void babl_init_db (void)
           if (babl)
           {
             if ( ((babl->fish.pixels+1 + babl->fish.processings) % 
-                (tim % 100)) == 0)
+                  ((tim % 100)+1)) == 0)
             {
               /* 1% chance of individual cached conversions being dropped -
                * making sure mis-measured conversions do not


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]