In the debug log, split the unit from the measurement

awk(1) friendly is UNIX(tm) friendly.
This commit is contained in:
Sean Chittenden
2016-06-16 19:42:37 -07:00
parent e0b4f7a080
commit b0490efb38

View File

@@ -50,7 +50,7 @@ func (f *CPUFingerprint) Fingerprint(cfg *config.Config, node *structs.Node) (bo
f.logger.Println("[WARN] fingerprint.cpu: Unable to obtain the CPU Mhz")
} else {
node.Attributes["cpu.frequency"] = fmt.Sprintf("%.6f", mhz)
f.logger.Printf("[DEBUG] fingerprint.cpu: frequency: %02.1fMHz", mhz)
f.logger.Printf("[DEBUG] fingerprint.cpu: frequency: %02.1f MHz", mhz)
}
var numCores int