summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2018-09-17 22:41:57 +0200
committerZeeshan Ali <zeenix@collabora.co.uk>2018-09-17 22:45:52 +0200
commit110938de2ceff2ddc80723630e755dfaca12f6c9 (patch)
tree28b68d78fc5981d97f8cf7a48d9b762582215e8c
parent67364d55403958129eb1d46d92071d7787dcedbe (diff)
downloadgeoclue-110938de2ceff2ddc80723630e755dfaca12f6c9.tar.gz
service: Increase default inactivity timeout to 60s
instead of 5 seconds. 5s is very short amount of time when system is very loaded and during startup of a desktop session. There is not harm in waiting 60s anyway. Also, the default value should be longer than the agent registeration timeout, which is currently 100ms but will be increased to 20s in a following patch.
-rw-r--r--src/gclue-main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gclue-main.c b/src/gclue-main.c
index 55db069..d5a01fe 100644
--- a/src/gclue-main.c
+++ b/src/gclue-main.c
@@ -33,7 +33,7 @@
/* Commandline options */
static gboolean version = FALSE;
-static gint inactivity_timeout = 5;
+static gint inactivity_timeout = 60;
static gboolean submit_data = FALSE;
static char *submit_nick = NULL;
@@ -51,7 +51,7 @@ static GOptionEntry entries[] =
0,
G_OPTION_ARG_INT,
&inactivity_timeout,
- N_("Exit after T seconds of inactivity, 0 for never. Default: 5"),
+ N_("Exit after T seconds of inactivity, 0 for never. Default: 60"),
"T" },
{ "submit-data",
's',