summary refs log tree commit diff stats
path: root/src/common/dcc.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-05-08 21:51:38 +0200
committerPatrick Griffis <tingping@tingping.se>2016-06-29 15:42:11 -0400
commitbcbe42dd7a4b7bca0e699c3e52f2c9bf7b37deba (patch)
tree0e93a7ba613dcdbfd0c27961578afa624a4ae13a /src/common/dcc.c
parent25e197a6c84463e967065c64b5760b79884787cc (diff)
Introduce and use fe_timeout_add_seconds
This should allow the operating system to be a bit more lax about
timeouts, allowing more efficient power management.
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r--src/common/dcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index d288556e..02cbeb00 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -2234,7 +2234,7 @@ new_dcc (void)
 	dcc_list = g_slist_prepend (dcc_list, dcc);
 	if (timeout_timer == 0)
 	{
-		timeout_timer = fe_timeout_add (1000, dcc_check_timeouts, NULL);
+		timeout_timer = fe_timeout_add_seconds (1, dcc_check_timeouts, NULL);
 	}
 	return dcc;
 }