Logoj0ke.net Open Build Service > Projects > GFS > openais > revision-1409.patch
Sign Up | Log In

File revision-1409.patch of Package openais (Revision de8a6772c8d60834a37a55e6d0c21a9f)

Currently displaying revision de8a6772c8d60834a37a55e6d0c21a9f, show latest

x
 
1
Index: exec/totempg.c
2
===================================================================
3
--- exec/totempg.c  (revision 1408)
4
+++ exec/totempg.c  (revision 1409)
5
@@ -870,13 +870,14 @@
6
 /*
7
  * Determine if a message of msg_size could be queued
8
  */
9
+#define FUZZY_AVAIL_SUBTRACT 5
10
 static int send_ok (
11
    int msg_size)
12
 {
13
    int avail = 0;
14
    int total;
15
 
16
-   avail = totemmrp_avail ();
17
+   avail = totemmrp_avail () - FUZZY_AVAIL_SUBTRACT;
18
    
19
    /*
20
     * msg size less then totempg_totem_config->net_mtu - 25 will take up
21