about summary refs log tree commit diff
path: root/src/crapnet/crapnet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crapnet/crapnet.cpp')
-rw-r--r--src/crapnet/crapnet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crapnet/crapnet.cpp b/src/crapnet/crapnet.cpp
index b441a350..f87803b5 100644
--- a/src/crapnet/crapnet.cpp
+++ b/src/crapnet/crapnet.cpp
@@ -96,12 +96,12 @@ int run(int port, netaddr4 dest)
 				}
 				
 				// send and remove packet
-				if((rand()%10) != 0) // heavy packetloss
-					socket.send(&p->send_to, p->data, p->data_size);
+				//if((rand()%10) != 0) // heavy packetloss
+				socket.send(&p->send_to, p->data, p->data_size);
 				
 				// update lag
 				double flux = rand()/(double)RAND_MAX;
-				int ms_spike = 250;
+				int ms_spike = 0;
 				int ms_flux = 100;
 				int ms_ping = 50;
 				current_latency = ((time_freq()*ms_ping)/1000) + (int64)(((time_freq()*ms_flux)/1000)*flux); // 50ms