correction du stand de cuissant et cuisinier

This commit is contained in:
Rochas
2024-12-07 12:37:43 +01:00
parent 3624e1ab66
commit f5cb2d1582
2 changed files with 2 additions and 9 deletions

6
.gitignore vendored
View File

@@ -1,10 +1,4 @@
# bloop and metals
.bloop
.bsp
.metals
project/metals.sbt
# vs code
.vscode
.idea

View File

@@ -20,9 +20,8 @@ public class Cuisinier extends Thread {
public void faire_cuire(Client client){
System.out.println("Cuisinier : fait cuire le plat de " + client.getNameClient()) ;
try{
//long temps_cuire =new Random().nextInt(300 - 100) + 100;
//Thread.sleep(temps_cuire);
Thread.sleep(3000);
long temps_cuire =new Random().nextInt(300 - 100) + 100;
Thread.sleep(temps_cuire);
}catch(InterruptedException e){
e.printStackTrace();
}