Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/acme-volume-alsa.c
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-12-06 21:29:39 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-12-18 19:56:08 (GMT)
commit2937a09ead08858a6bb4176ecafb4c1bf7dff735 (patch)
treecaabd26787e1237146cf1d80149bf12c0aaefe3c /src/sugar/acme-volume-alsa.c
parent96da9d490ef18fa35893314d4d2b6ee75de0767a (diff)
Use g_timeout_add_seconds() for power efficiency
This attempts to align second-granularity wakeups across the system, reducing CPU wakeups a little. I considered all timeouts of duration 1 second or greater, and moved the non-timing-critical ones to g_timeout_add_seconds(). (Actually, I didn't find any that I felt were timing-critical)
Diffstat (limited to 'src/sugar/acme-volume-alsa.c')
-rw-r--r--src/sugar/acme-volume-alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/acme-volume-alsa.c b/src/sugar/acme-volume-alsa.c
index c1ea5cc..42bbf4e 100644
--- a/src/sugar/acme-volume-alsa.c
+++ b/src/sugar/acme-volume-alsa.c
@@ -292,7 +292,7 @@ bail:
static void
acme_volume_alsa_close (AcmeVolumeAlsa *self)
{
- self->_priv->timer_id = g_timeout_add (4000,
+ self->_priv->timer_id = g_timeout_add_seconds (4,
(GSourceFunc) acme_volume_alsa_close_real, self);
}