about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-23 16:48:59 +0100
committerEmile <hanemile@protonmail.com>2020-02-23 16:48:59 +0100
commit90acbdf0866842a4695848c5fcd9ecf261a4040b (patch)
tree582ee7e597d94f22cbcb1105c21c5f333e65c6af
parentccb34dfdc89efad09fa59f4bd5080b10a482c94c (diff)
updated the default round time
-rw-r--r--src/config.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.go b/src/config.go
index 577862c..706d29e 100644
--- a/src/config.go
+++ b/src/config.go
@@ -2,6 +2,7 @@ package main
 
 import (
 	"flag"
+	"time"
 
 	"github.com/sirupsen/logrus"
 )
@@ -14,7 +15,7 @@ func parseConfig() Config {
 	bits := flag.Int("bits", 32, "bot bitness (8|16|32|64)")
 	maxProgSize := flag.Int("maxProgSize", 64, "the maximum bot size")
 	memPerBot := flag.Int("memPerBot", 512, "the amount of memory each bot should add to the arena")
-	gameRoundDuration := flag.Duration("t", 250, "The duration of a round")
+	gameRoundDuration := flag.Duration("t", 250*time.Millisecond, "The duration of a round")
 
 	v := flag.Bool("v", false, "info")
 	vv := flag.Bool("vv", false, "debug")