Mercurial > pidgin.yaz
changeset 4590:3b8e6c2b4a50
[gaim-migrate @ 4874]
changing MAX to MIN makes MAXTIME truely the max delay time. i also increased the max delay to 34 min instead of 17 min, since that's what i remember it being.
Many thanks to Adam Feakin for pointing out that this code was behaving badly.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 20 Feb 2003 00:52:19 +0000 |
parents | eddb870a3c4d |
children | 5ef293db2582 |
files | plugins/autorecon.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/autorecon.c Wed Feb 19 23:27:37 2003 +0000 +++ b/plugins/autorecon.c Thu Feb 20 00:52:19 2003 +0000 @@ -14,7 +14,7 @@ G_MODULE_IMPORT GSList *gaim_accounts; #define INITIAL 8000 -#define MAXTIME 1024000 +#define MAXTIME 2048000 static GHashTable *hash = NULL; @@ -40,7 +40,7 @@ if (!del) del = INITIAL; else - del = MAX(2 * del, MAXTIME); + del = MIN(2 * del, MAXTIME); tim = g_timeout_add(del, do_signon, gc->account); g_hash_table_insert(hash, gc->account, (gpointer)del); } else {