summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 23275d1..e2dd220 100644
--- a/main.go
+++ b/main.go
@@ -14,8 +14,8 @@ func init() {
func main() {
names := Names{"Aristotle", "Kant", "Spinoza", "Marx", "Russell"}
flag.Var(&names, "names", "philospher names")
- bites := flag.Int("bites", 3, "number of rounds")
- delay := flag.Duration("max delay", 3*time.Second, "delay")
+ rounds := flag.Int("rounds", 3, "number of rounds")
+ maxDelay := flag.Duration("max delay", 3*time.Second, "delay")
timeOut := flag.Duration("timeout", time.Second, "delay")
flag.Parse()
@@ -28,8 +28,8 @@ func main() {
Name: name,
Left: forks[i],
Right: forks[(i+1)%len(names)],
- Bites: *bites,
- MaxDelay: *delay,
+ Rounds: *rounds,
+ MaxDelay: *maxDelay,
TimeOut: *timeOut,
}
go func() {