summaryrefslogtreecommitdiff
path: root/philo.go
diff options
context:
space:
mode:
Diffstat (limited to 'philo.go')
-rw-r--r--philo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/philo.go b/philo.go
index 056e7aa..6945def 100644
--- a/philo.go
+++ b/philo.go
@@ -10,7 +10,7 @@ type Philo struct {
Name string
Left Fork
Right Fork
- Bites int
+ Rounds int
MaxDelay time.Duration
TimeOut time.Duration
}
@@ -56,7 +56,7 @@ func (p *Philo) Eat() stateFn {
p.Left.Put()
p.Right.Put()
- if p.Bites--; p.Bites <= 0 {
+ if p.Rounds--; p.Rounds <= 0 {
return p.Leave
}