[banshee] [TrackInfo] Fixed initial track score calculation (bgo#594568)



commit 310382a8d8ab7779e2a837e391d8f74ed8221845
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Fri Sep 11 10:53:34 2009 +1000

    [TrackInfo] Fixed initial track score calculation (bgo#594568)

 .../Banshee.Core/Banshee.Collection/TrackInfo.cs   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
index efcc4b4..f04e10b 100644
--- a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
+++ b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
@@ -116,7 +116,7 @@ namespace Banshee.Collection
         {
             double total_plays = PlayCount + SkipCount;
             if (total_plays <= 0) {
-                Score = (int) Math.Round ((Score + (percentCompleted * 100)) / 2);
+                Score = (int) Math.Round (percentCompleted * 100);
             } else {
                 Score = (int) Math.Round ((((double)Score * total_plays) + (percentCompleted * 100)) / (total_plays + 1));
             }



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