diff options
Diffstat (limited to 'src/tools/crapnet.cpp')
| -rw-r--r-- | src/tools/crapnet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/crapnet.cpp b/src/tools/crapnet.cpp index 842a602d..68e76fa4 100644 --- a/src/tools/crapnet.cpp +++ b/src/tools/crapnet.cpp @@ -97,12 +97,12 @@ int run(int port, NETADDR4 dest) // send and remove packet //if((rand()%20) != 0) // heavy packetloss - // net_udp4_send(socket, &p->send_to, p->data, p->data_size); + net_udp4_send(socket, &p->send_to, p->data, p->data_size); // update lag double flux = rand()/(double)RAND_MAX; int ms_spike = 0; - int ms_flux = 50; + int ms_flux = 20; int ms_ping = 50; current_latency = ((time_freq()*ms_ping)/1000) + (int64)(((time_freq()*ms_flux)/1000)*flux); // 50ms |