Commit 9b26f2eb authored by bjoern's avatar bjoern
Browse files

Ensure that the flash crowd always starts at fc start

parent bc570b15
......@@ -164,9 +164,7 @@ public class ConstantPeerCountChurnModel implements ChurnModel {
clientSessionInfos.put(host.getHostId(), info);
if (hasFlashcrowd && !flashCrowdFinished
&& currentJoin > flashcrowdStart) {
if (currentJoin > flashcrowdStart + flashcrowdInterval){
currentJoin = flashcrowdStart;
}
inFlashcrowd = true;
}
lastJoin = currentJoin;
......@@ -190,9 +188,7 @@ public class ConstantPeerCountChurnModel implements ChurnModel {
clientSessionInfos.put(host.getHostId(), info);
if (hasFlashcrowd && !flashCrowdFinished
&& currentJoin > flashcrowdStart) {
if (currentJoin > flashcrowdStart + flashcrowdInterval){
currentJoin = flashcrowdStart;
}
inFlashcrowd = true;
}
lastJoin = currentJoin;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment