summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-01 17:53:55 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-01 17:53:55 +0200
commit287adfc6f8f1b548aacb005b5f4ccf18caef40ed (patch)
tree8b2d9ee915b5fadfadd1c84f7e6cffa65441123c /server/src
parentddb2d69dc08d08abeadc70f7346106ad1e8b445b (diff)
downloadhurrycurry-287adfc6f8f1b548aacb005b5f4ccf18caef40ed.tar
hurrycurry-287adfc6f8f1b548aacb005b5f4ccf18caef40ed.tar.bz2
hurrycurry-287adfc6f8f1b548aacb005b5f4ccf18caef40ed.tar.zst
randomize customer timeout
Diffstat (limited to 'server/src')
-rw-r--r--server/src/customer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs
index f90b2eb2..c9b45160 100644
--- a/server/src/customer/mod.rs
+++ b/server/src/customer/mod.rs
@@ -145,7 +145,7 @@ impl DemandState {
));
p.state = CustomerState::Waiting {
chair: *chair,
- timeout: 60.,
+ timeout: 60. + random::<f32>() * 30.,
demand,
};
}