[gegl] img_cmp: correct computation of % pixels wrong



commit 5105d5fdc366747ecb0042ff69b6f781d2e03611
Author: �yvind Kolås <pippin gimp org>
Date:   Sun Jan 17 23:13:38 2010 +0000

    img_cmp: correct computation of % pixels wrong

 tools/img_cmp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tools/img_cmp.c b/tools/img_cmp.c
index e9a4396..8e80dc3 100644
--- a/tools/img_cmp.c
+++ b/tools/img_cmp.c
@@ -90,7 +90,7 @@ main (gint    argc,
                   "  avg diff (wrong) : %f\n"
                   "  avg diff (total) : %f\n",
                   argv[1], argv[2],
-                  wrong_pixels, (wrong_pixels*1.0/pixels), 
+                  wrong_pixels, (wrong_pixels*100.0/pixels), 
                   diffsum/wrong_pixels,
                   diffsum/pixels);
          return 1;



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