diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-05-08 21:51:38 +0200 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-06-29 15:42:11 -0400 |
commit | bcbe42dd7a4b7bca0e699c3e52f2c9bf7b37deba (patch) | |
tree | 0e93a7ba613dcdbfd0c27961578afa624a4ae13a /src/common/hexchat.c | |
parent | 25e197a6c84463e967065c64b5760b79884787cc (diff) |
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.
Diffstat (limited to 'src/common/hexchat.c')
-rw-r--r-- | src/common/hexchat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/hexchat.c b/src/common/hexchat.c index 1f61f84f..f2c79024 100644 --- a/src/common/hexchat.c +++ b/src/common/hexchat.c @@ -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) |