pidgin: 8e3f88b9: We were using this formula from before t...

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Feb 2 18:50:42 EST 2010


-----------------------------------------------------------------
Revision: 8e3f88b957056f7fa511fcff0d4fd2af7269d36e
Ancestor: 24f3025f56afcfd6967ed38ed38ceb7c1608227a
Author: markdoliner at pidgin.im
Date: 2010-02-02T23:44:33
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8e3f88b957056f7fa511fcff0d4fd2af7269d36e

Modified files:
        libpurple/protocols/oscar/flap_connection.c

ChangeLog: 

We were using this formula from before the documentation was public, and
for some reason I think it's a good idea for this comment to not indicate
that we got the formula from the documentation

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/flap_connection.c	80e6cd2d0f781321a2371d6e7d32d8db5ce43404
+++ libpurple/protocols/oscar/flap_connection.c	cb6ba63007912e939e538e26c123a1b3eef77397
@@ -133,10 +133,10 @@ rateclass_get_new_current(FlapConnection
 	unsigned long timediff; /* In milliseconds */
 	guint32 current;
 
+	/* This formula is documented at http://dev.aol.com/aim/oscar/#RATELIMIT */
 	timediff = (now->tv_sec - rateclass->last.tv_sec) * 1000 + (now->tv_usec - rateclass->last.tv_usec) / 1000;
 	current = ((rateclass->current * (rateclass->windowsize - 1)) + timediff) / rateclass->windowsize;
 
-	/* This formula is taken from http://dev.aol.com/aim/oscar/#RATELIMIT */
 	return MIN(current, rateclass->max);
 }
 


More information about the Commits mailing list