diff options
Diffstat (limited to 'src/philo/table.py')
| -rw-r--r-- | src/philo/table.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/philo/table.py b/src/philo/table.py index 56ed331..66eaa9d 100644 --- a/src/philo/table.py +++ b/src/philo/table.py @@ -6,7 +6,7 @@ # By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/10/01 10:53:29 by cacharle #+# #+# # -# Updated: 2020/10/01 14:15:09 by cacharle ### ########.fr # +# Updated: 2020/10/05 14:03:35 by cacharle ### ########.fr # # # # ############################################################################ # @@ -17,6 +17,7 @@ from philo import Philo from philo import error from philo.event import Event + class Table: def __init__( self, @@ -55,10 +56,8 @@ class Table: if self.dead: return - for p in self._philos: p.check() - fork_used = sum([p.used_forks for p in self._philos]) if fork_used > self._philo_num: raise error.Log(self._logs, "Using nonexistant forks") |
