rapl capping via ssh command in rapl package

This commit is contained in:
Renan DelValle 2016-10-18 14:56:07 -04:00
parent 254528f4f1
commit 1386049d30
3 changed files with 40 additions and 36 deletions

View file

@ -109,7 +109,7 @@ func main() {
fmt.Println("Index: ", i)
powerIndexes = append(powerIndexes, i)
indexToHost[i] = split[0]
powerAverage[split[0]] = ring.New(10) // Two PKS per node, 10 = 5 seconds tracking
powerAverage[split[0]] = ring.New(10) // Two PKGS per node, 10 = 5 seconds tracking
}
}
@ -152,15 +152,7 @@ func main() {
log.Printf("Current Victim %s Avg. Wattage: %f", victims[0].Host, victims[0].Watts * RAPLUnits)
}
/*
fmt.Printf("Second: %d\n", seconds)
for i, val := range strings.Split(scanner.Text(), ",") {
fmt.Printf("host metric: %s val: %s\n", headers[i], val)
}*/
seconds++
// fmt.Println("--------------------------------")
}
}(logging)