Increase COORD_GET_INTERVAL
authorandrei1089 <andrei.mirestean@gmail.com>
Sun, 14 Feb 2010 19:43:44 +0000 (21:43 +0200)
committerandrei1089 <andrei.mirestean@gmail.com>
Sun, 14 Feb 2010 19:43:44 +0000 (21:43 +0200)
Increased value in order to reduce CPU usage, preventing the widget
from having a big impact on battery life

src/usr/lib/hildon-desktop/pedometer_widget_home.py

index 56e44c9..ea1f39c 100644 (file)
@@ -697,7 +697,7 @@ class PedoCounter(Singleton):
     COORD_FNAME_SDK = "/home/andrei/pedometer-widget-0.1/date.txt"
     LOGFILE = "/home/user/log_pedometer"
     #time in ms between two accelerometer data reads
     COORD_FNAME_SDK = "/home/andrei/pedometer-widget-0.1/date.txt"
     LOGFILE = "/home/user/log_pedometer"
     #time in ms between two accelerometer data reads
-    COORD_GET_INTERVAL = 10
+    COORD_GET_INTERVAL = 25
 
     COUNT_INTERVAL = 5
 
 
     COUNT_INTERVAL = 5