*
* Connection Manager
*
- * Copyright (C) 2007-2010 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2012 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
poll_id = g_timeout_add_seconds(transmit_delay, next_poll, NULL);
+ connman_info("ntp: time slew %+.6f s", offset);
+
if (offset < STEPTIME_MIN_OFFSET && offset > -STEPTIME_MIN_OFFSET) {
struct timeval adj;
start_ntp(timeserver);
/*
- * Add a fallback timeout , preferably longer, 16 sec here,
+ * Add a fallback timeout , preferably short, 5 sec here,
* to fallback on the next server.
*/
- timeout_id = g_timeout_add_seconds(16, next_server, NULL);
+ timeout_id = g_timeout_add_seconds(5, next_server, NULL);
return 0;
}