fixed incredibly old bug in this test.
authorEric Bohm <ebohm@illinois.edu>
Fri, 25 Jul 2008 21:22:36 +0000 (21:22 +0000)
committerEric Bohm <ebohm@illinois.edu>
Fri, 25 Jul 2008 21:22:36 +0000 (21:22 +0000)
Whoever wrote the multisend test owes me a week of work.
I will accept a fine bottle of single malt scotch as appeasement.

tests/converse/megacon/multisend.c

index 91a46db11fd6f5a8d5d98dc687fcc56183b2a43d..00191a0c533145af6846cbe2905684b831d4cfdd 100644 (file)
@@ -40,7 +40,7 @@ void multisend_handler(multisendmsg *msg,multisend_info *info)
   checkMsg(msg);
   /* Forward message back to master: */
   CmiSetHandler(msg, CpvAccess(multisend_done_index));
-  CmiSyncSendAndFree(0, sizeof(multisendmsg), msg);
+  CmiSyncSendAndFree(0, sizeof(multisendmsg)-sizeof(double)*msg->me, msg);
 }
 
 void multisend_done_handler(multisendmsg *msg)