From: Scott Worley Date: Sat, 15 Sep 2012 19:09:01 +0000 (-0700) Subject: Add an extra_stats flag so they can be disabled X-Git-Url: http://git.scottworley.com/planeteer/commitdiff_plain/bc4a3744c612277ded9e74e3463934f127b46041 Add an extra_stats flag so they can be disabled --- diff --git a/planeteer.go b/planeteer.go index 7cea3cb..d81713e 100644 --- a/planeteer.go +++ b/planeteer.go @@ -68,6 +68,9 @@ var visit_string = flag.String("visit", "", var tomorrow_weight = flag.Float64("tomorrow_weight", 1.0, "Weight for the expected value of tomorrow's trading. 0.0 - 1.0") +var extra_stats = flag.Bool("extra_stats", true, + "Show additional information of possible interest") + var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file") var visit_cache []string @@ -780,8 +783,10 @@ func main() { fmt.Println(description[i]) } - FighterAndShieldCost(data, dims, table, best) - EndEdensCost(data, dims, table, best) - VisitCost(data, dims, table, best) - EndLocationCost(data, dims, table, best) + if *extra_stats { + FighterAndShieldCost(data, dims, table, best) + EndEdensCost(data, dims, table, best) + VisitCost(data, dims, table, best) + EndLocationCost(data, dims, table, best) + } }