diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-07-10 12:50:33 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-07-10 12:50:33 +0200 | 
| commit | c3f682560a728d1105b65bdabfdf87ab41fcf925 (patch) | |
| tree | 93bd6e9a6b083ad3ead667176ebe32c498c13071 /server | |
| parent | 6975d465c406f5f9e360d34a98b65efc640f1d7a (diff) | |
| download | hurrycurry-c3f682560a728d1105b65bdabfdf87ab41fcf925.tar hurrycurry-c3f682560a728d1105b65bdabfdf87ab41fcf925.tar.bz2 hurrycurry-c3f682560a728d1105b65bdabfdf87ab41fcf925.tar.zst  | |
increase customer timeout
Diffstat (limited to 'server')
| -rw-r--r-- | server/src/customer/mod.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs index e60c50c7..aeaa7ae1 100644 --- a/server/src/customer/mod.rs +++ b/server/src/customer/mod.rs @@ -107,7 +107,7 @@ impl DemandState {          self.spawn_cooldown -= dt;          self.spawn_cooldown = self.spawn_cooldown.max(0.);          if self.customers.len() < 5 && self.spawn_cooldown <= 0. { -            self.spawn_cooldown = 5. + random::<f32>() * 10.; +            self.spawn_cooldown = 10. + random::<f32>() * 10.;              self.customer_id_counter.0 -= 1;              let id = self.customer_id_counter;              packets_out.push(( @@ -147,7 +147,7 @@ impl DemandState {                          info!("{id:?} -> waiting");                          p.state = CustomerState::Waiting {                              chair: *chair, -                            timeout: 60. + random::<f32>() * 30., +                            timeout: 90. + random::<f32>() * 60.,                              demand,                          };                      }  |