changeset 29326:89bece95a522

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
author Mark Doliner <mark@kingant.net>
date Tue, 02 Feb 2010 23:44:33 +0000
parents 6b0c4667c4fb
children 2e3e0801de29
files libpurple/protocols/oscar/flap_connection.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/flap_connection.c	Tue Feb 02 23:24:20 2010 +0000
+++ b/libpurple/protocols/oscar/flap_connection.c	Tue Feb 02 23:44:33 2010 +0000
@@ -133,10 +133,10 @@
 	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);
 }