From bc4a3744c612277ded9e74e3463934f127b46041 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 15 Sep 2012 12:09:01 -0700 Subject: [PATCH] Add an extra_stats flag so they can be disabled --- planeteer.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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) + } } -- 2.44.1