|
@@ -152,6 +152,9 @@ pub async fn main() {
|
|
|
let mut max_physical_mem = 0;
|
|
|
let mut max_virtual_mem = 0;
|
|
|
|
|
|
+ // We maintain a backlog of users trying to connect
|
|
|
+ let mut num_users_requesting_invites = 0;
|
|
|
+
|
|
|
// Main loop
|
|
|
for day in 1..=config.num_days {
|
|
|
// Save some function calls by storing this
|
|
@@ -190,8 +193,8 @@ pub async fn main() {
|
|
|
|
|
|
// USER TASKS
|
|
|
|
|
|
- // Number of users who want to join today
|
|
|
- let num_users_requesting_invites: u32 =
|
|
|
+ // Add number of users who want to join today
|
|
|
+ num_users_requesting_invites +=
|
|
|
rng.gen_range(config.min_new_users_per_day..=config.max_new_users_per_day);
|
|
|
|
|
|
let mut new_users = Vec::<User>::new();
|