aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-13 16:12:44 +0200
committerMax Kellermann <max@duempel.org>2009-10-13 16:12:44 +0200
commita9dc0e816c0b6c0ed19a584225e3fe6251f1a4c6 (patch)
tree5664c95f0cd333a76c982295954c63098bd73400
parent4390d72b141304b8dfcdb374b428d3b4fae56237 (diff)
state_file: use g_timeout_add_seconds()
-rw-r--r--src/state_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state_file.c b/src/state_file.c
index 4ba157b1..aa66720c 100644
--- a/src/state_file.c
+++ b/src/state_file.c
@@ -134,8 +134,9 @@ state_file_init(const char *path)
state_file_path = g_strdup(path);
state_file_read();
- save_state_source_id = g_timeout_add(5 * 60 * 1000,
- timer_save_state_file, NULL);
+ save_state_source_id = g_timeout_add_seconds(5 * 60,
+ timer_save_state_file,
+ NULL);
}
void