[gnome-software] ubuntu-reviews: Fix score calculation



commit 7723d6ccb3c53886e09d70364c43aeaa9fed9747
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Jul 1 15:15:23 2016 +1200

    ubuntu-reviews: Fix score calculation

 src/plugins/gs-plugin-ubuntu-reviews.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index ba664e0..92d9e43 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -218,7 +218,7 @@ get_rating (gint64 one_star_count, gint64 two_star_count, gint64 three_star_coun
        return (((wilson_score (one_star_count, n_ratings, 0.1) * -2) +
                 (wilson_score (two_star_count, n_ratings, 0.1) * -1) +
                 (wilson_score (four_star_count, n_ratings, 0.1) * 1) +
-                (wilson_score (five_star_count, n_ratings, 0.1) * 2)) + 3) * 20;
+                (wilson_score (five_star_count, n_ratings, 0.1) * 2)) + 3) * 20 - 10;
 }
 
 static gboolean


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