summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2010-03-24 20:26:27 -0700
committerDenis Kenzior <denkenz@gmail.com>2010-03-24 23:04:42 -0500
commitfb40115bf2722e8f18fdf7d9b5a3008c9af953da (patch)
tree15794104a5e3922ffbed8be6f4ef1b85056fc134
parent1905d4dedacb9d369fe57f5000def11e71374c9d (diff)
downloadofono-fb40115bf2722e8f18fdf7d9b5a3008c9af953da.tar.bz2
switch to g_timeout_add_seconds()
we don't care that much about the exactness of our timer, so use the more power efficient call.
-rw-r--r--gatchat/ppp_cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/ppp_cp.c b/gatchat/ppp_cp.c
index 3132af5c..de720660 100644
--- a/gatchat/ppp_cp.c
+++ b/gatchat/ppp_cp.c
@@ -56,7 +56,7 @@ struct pppcp_event {
guint8 data[0];
};
-#define INITIAL_RESTART_TIMEOUT 3000
+#define INITIAL_RESTART_TIMEOUT 3 /* restart interval in seconds */
#define MAX_TERMINATE 2
#define MAX_CONFIGURE 10
#define MAX_FAILURE 5
@@ -107,7 +107,7 @@ static gboolean pppcp_timeout(gpointer user_data)
static void pppcp_start_timer(struct pppcp_data *data)
{
- data->restart_timer = g_timeout_add(data->restart_interval,
+ data->restart_timer = g_timeout_add_seconds(data->restart_interval,
pppcp_timeout, data);
}