Fix off by one calculation error resulting in assertion.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2398 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2009-08-28 18:20:14 +00:00
parent 21fedb2495
commit 519616de0c

View File

@ -942,9 +942,9 @@ static int byte_count_send_ok (
avail = totemmrp_avail ();
msg_count = (byte_count / (totempg_totem_config->net_mtu - sizeof (struct totempg_mcast) - 16));
msg_count = (byte_count / (totempg_totem_config->net_mtu - sizeof (struct totempg_mcast) - 16)) + 1;
return (avail > msg_count);
return (avail >= msg_count);
}
static int send_reserve (