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.
This commit is contained in:
Ben Gamari
2016-05-08 21:51:38 +02:00
committed by Patrick Griffis
parent 25e197a6c8
commit bcbe42dd7a
8 changed files with 21 additions and 8 deletions

View File

@@ -395,14 +395,14 @@ irc_init (session *sess)
#endif
if (prefs.hex_notify_timeout)
notify_tag = fe_timeout_add (prefs.hex_notify_timeout * 1000,
notify_checklist, NULL);
notify_tag = fe_timeout_add_seconds (prefs.hex_notify_timeout,
notify_checklist, NULL);
fe_timeout_add (prefs.hex_away_timeout * 1000, away_check, NULL);
fe_timeout_add_seconds (prefs.hex_away_timeout, away_check, NULL);
if (prefs.hex_gui_lagometer)
{
fe_timeout_add (500, hexchat_lag_check_update, NULL);
fe_timeout_add (30000, hexchat_lag_check, NULL);
fe_timeout_add_seconds (30, hexchat_lag_check, NULL);
}
if (arg_url != NULL)