|
@@ -249,7 +249,7 @@ public class RecordOverviewFragment extends UpNavigatibleFragment implements Che
|
|
|
@Override
|
|
|
public void run()
|
|
|
{
|
|
|
- //RecordOverviewFragment.this.addRecordToDB(5, 10, 2);
|
|
|
+ //RecordOverviewFragment.this.addRecordToDB(5, 10, 6);
|
|
|
updateUI(doInBackground());
|
|
|
}
|
|
|
|
|
@@ -1236,7 +1236,9 @@ public class RecordOverviewFragment extends UpNavigatibleFragment implements Che
|
|
|
// ATTACKS PER NETWORK
|
|
|
for (int attackNumber = 0; attackNumber < numOfAttackPerNetwork; attackNumber++) {
|
|
|
|
|
|
- int numRecordsPerAttack = (Math.abs(random.nextInt()) % (Math.max( maxMessagePerAttack + 1, 1)));
|
|
|
+ int numRecordsPerAttack = (Math.abs(random.nextInt()) % (Math.max( maxMessagePerAttack, 1))) + 1;
|
|
|
+
|
|
|
+ if (maxMessagePerAttack <= 0) numRecordsPerAttack = 0;
|
|
|
|
|
|
/* ADD A ATTACK*/
|
|
|
AttackRecord attack = new AttackRecord();
|