[banshee/stable-1.6] [TrackInfo] Add PlaybackSkippedThreshold property
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [TrackInfo] Add PlaybackSkippedThreshold property
- Date: Sun, 2 May 2010 00:09:45 +0000 (UTC)
commit 8a672b8760a258a971c1276cf21850d6192c1899
Author: Aaron Bockover <abockover novell com>
Date: Sat May 1 19:45:04 2010 -0400
[TrackInfo] Add PlaybackSkippedThreshold property
.../Banshee.Core/Banshee.Collection/TrackInfo.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
index c0b05af..c9e9402 100644
--- a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
+++ b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
@@ -44,6 +44,7 @@ namespace Banshee.Collection
public class TrackInfo : CacheableItem, ITrackInfo
{
public const string ExportVersion = "1.0";
+ public static readonly double PlaybackSkippedThreshold = 0.5;
public static readonly string UnknownTitle = Catalog.GetString ("Unknown Title");
@@ -86,7 +87,7 @@ namespace Banshee.Collection
Score = (int) Math.Round ((((double)Score * total_plays) + (percentCompleted * 100)) / (total_plays + 1));
}
- if (percentCompleted <= 0.5) {
+ if (percentCompleted <= PlaybackSkippedThreshold) {
LastSkipped = DateTime.Now;
SkipCount++;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]