History

more test code (10% drop both directions)

wangyix committed 12 years ago

Commit 8565e931 parent a31d5353 files · +3 −2Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−0
@@ -519,6 +519,7 @@ void ScriptEngine::run() { · 518 unmodified lines
519519 memcpy(audioPacket.data() + numPreSequenceNumberBytes, &sequence, sizeof(quint16));
520520
521521 // send audio packet
522+ if (rand() % 100 < 90)
522523 nodeList->writeDatagram(audioPacket, node);
523524 }
524525 }