pidgin: 24f3025f: Let's just do this mod on the fly instea...
markdoliner at pidgin.im
markdoliner at pidgin.im
Tue Feb 2 18:50:42 EST 2010
-----------------------------------------------------------------
Revision: 24f3025f56afcfd6967ed38ed38ceb7c1608227a
Ancestor: e4ac907bad6138766e0ccd0f47d17103a0b0a75c
Author: markdoliner at pidgin.im
Date: 2010-02-02T23:24:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/24f3025f56afcfd6967ed38ed38ceb7c1608227a
Modified files:
libpurple/protocols/oscar/family_oservice.c
ChangeLog:
Let's just do this mod on the fly instead of changing the variable
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/family_oservice.c c0e09144b5d44b46bc204def448345f42986da6f
+++ libpurple/protocols/oscar/family_oservice.c 133785f91cdb61381e36e6d5cd3b7b0229bf0e09
@@ -342,8 +342,7 @@ rateresp(OscarData *od, FlapConnection *
}
rateclass->last.tv_sec = now.tv_sec - delta / 1000;
- delta %= 1000;
- rateclass->last.tv_usec = now.tv_usec - delta * 1000;
+ rateclass->last.tv_usec = now.tv_usec - (delta % 1000) * 1000;
rateclass->members = g_hash_table_new(g_direct_hash, g_direct_equal);
conn->rateclasses = g_slist_prepend(conn->rateclasses, rateclass);
@@ -485,8 +484,7 @@ ratechange(OscarData *od, FlapConnection
}
rateclass->last.tv_sec = now.tv_sec - delta / 1000;
- delta %= 1000;
- rateclass->last.tv_usec = now.tv_usec - delta * 1000;
+ rateclass->last.tv_usec = now.tv_usec - (delta % 1000) * 1000;
purple_debug_misc("oscar", "rate %s (param ID 0x%04hx): curavg = %u, "
"maxavg = %u, alert at %u, clear warning at %u, limit at %u, "
More information about the Commits
mailing list