UDP: Make +ack_delay actually set ACK delay, not retransmission delay
authorPhil Miller <mille121@illinois.edu>
Tue, 16 Mar 2010 19:38:37 +0000 (14:38 -0500)
committerPhil Miller <mille121@illinois.edu>
Tue, 16 Mar 2010 19:38:56 +0000 (14:38 -0500)
src/arch/net/machine-dgram.c

index 774ebf1a46bbab4fc777133f99cb6f4e384763f1..bf676406fcdd12ab2ca302477392d4d89effde87 100644 (file)
@@ -157,7 +157,7 @@ static void extract_args(char **argv)
   if (CmiGetArgIntDesc(argv,"+delay_retransmit",&ms, "Milliseconds to wait before retransmit"))
          Cmi_delay_retransmit=0.001*ms;
   if (CmiGetArgIntDesc(argv,"+ack_delay",&ms, "Milliseconds to wait before ack'ing"))
-         Cmi_delay_retransmit=0.001*ms;
+         Cmi_ack_delay=0.001*ms;
   extract_common_args(argv);
   Cmi_dgram_max_data = Cmi_max_dgram_size - DGRAM_HEADER_SIZE;
   Cmi_half_window = Cmi_window_size >> 1;