[banshee] BansheeMetrics: Only enable collection 5% of the time



commit 663bdae8ce6742cdd34667585389c50adff1e914
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Apr 4 14:36:55 2011 -0500

    BansheeMetrics: Only enable collection 5% of the time

 .../Banshee.Metrics/BansheeMetrics.cs              |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs b/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs
index 139c2fa..d2878f8 100644
--- a/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs
+++ b/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs
@@ -51,9 +51,9 @@ namespace Banshee.Metrics
 
         public static void Start ()
         {
-            // Only enable collection 20% of the time
-            var one_in_five = new Random ().NextDouble () < 0.2;
-            if (one_in_five && banshee_metrics == null) {
+            // Only enable collection 5% of the time
+            var one_in_twenty = new Random ().NextDouble () < 0.05;
+            if (one_in_twenty && banshee_metrics == null) {
                 Log.Information ("Starting collection of anonymous usage data");
                 try {
                     banshee_metrics = new BansheeMetrics ();



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