Hi,

the last change in mq.c (from 1.48 to 1.49) doesn't make sense to me:

---
[...]
@@ -193,7 +193,12 @@
                 * take a margin...
                 */

-               needed = target_to_lowmark / 3;
+               /*
+                * Add + 2 to avoid a zero result in case the target_to_lowmark is
+                * less then 3.
+                *              -- JA 08/03/2004
+                */
+               needed = target_to_lowmark + 2 / 3;
        } else {
                /*
                 * We won't be able to reach the low watermark at the present rates.
---

It should probably have been

  needed = (target_to_lowmark + 2) / 3;

Perhaps this broke the message queue ("needed" is off by a factor of
3).


Greetings,
Thomas.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to