Nightly: CHAOS-Intervall angepasst auf 60120 Sekunden
This commit is contained in:
parent
460c53c1d4
commit
8488d9da0a
1 changed files with 2 additions and 2 deletions
|
|
@ -188,14 +188,14 @@ export default function App() {
|
|||
const scheduleNextPlay = async () => {
|
||||
if (!chaosModeRef.current) return;
|
||||
await playRandomSound();
|
||||
const delay = 60_000 + Math.floor(Math.random() * 120_000); // 1-3 Minuten
|
||||
const delay = 60_000 + Math.floor(Math.random() * 60_000); // 60-120 Sekunden
|
||||
chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, delay);
|
||||
};
|
||||
|
||||
// Sofort ersten Sound abspielen
|
||||
await playRandomSound();
|
||||
// Nächsten zufällig in 1-3 Minuten planen
|
||||
const firstDelay = 60_000 + Math.floor(Math.random() * 120_000);
|
||||
const firstDelay = 60_000 + Math.floor(Math.random() * 60_000);
|
||||
chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, firstDelay);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue