changed name of command-line argument 'classMapWatts' to 'powerClass'

This commit is contained in:
Pradyumna Kaushik 2017-01-28 21:33:36 -05:00
parent 4f5036bd32
commit ee0cada747

View file

@ -21,7 +21,7 @@ var ignoreWatts = flag.Bool("ignoreWatts", false, "Ignore watts in offers")
var pcplogPrefix = flag.String("logPrefix", "", "Prefix for pcplog")
var hiThreshold = flag.Float64("hiThreshold", 0.0, "Upperbound for when we should start capping")
var loThreshold = flag.Float64("loThreshold", 0.0, "Lowerbound for when we should start uncapping")
var classMapWatts = flag.Bool("classMapWatts", false, "Map Watts to power-class of host in offer")
var powerClass = flag.Bool("powerClass", false, "Map Watts to power-class of host in offer")
// Short hand args
func init() {
@ -31,7 +31,7 @@ func init() {
flag.StringVar(pcplogPrefix, "p", "", "Prefix for pcplog (shorthand)")
flag.Float64Var(hiThreshold, "ht", 700.0, "Upperbound for when we should start capping (shorthand)")
flag.Float64Var(loThreshold, "lt", 400.0, "Lowerbound for when we should start uncapping (shorthand)")
flag.BoolVar(classMapWatts, "cmw", false, "Map watts to power-class of host in offer (shorthand)")
flag.BoolVar(powerClass, "pc", false, "Map watts to power-class of host in offer (shorthand)")
}
func main() {