Fixed bug in logging the correct cap value.
This commit is contained in:
parent
cb7e697cfa
commit
6798807a0b
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ func (s *BPSWClassMapWattsPistonCapping) startCapping() {
|
||||||
if err := rapl.Cap(host, "rapl", roundedCapValue); err != nil {
|
if err := rapl.Cap(host, "rapl", roundedCapValue); err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("Capped [%s] at %d", host, int(math.Floor(capValue)))
|
log.Printf("Capped [%s] at %d", host, roundedCapValue)
|
||||||
}
|
}
|
||||||
bpswClassMapWattsPistonPreviousRoundedCapValues[host] = roundedCapValue
|
bpswClassMapWattsPistonPreviousRoundedCapValues[host] = roundedCapValue
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ func (s *BPSWClassMapWattsPistonCapping) startCapping() {
|
||||||
if err := rapl.Cap(host, "rapl", roundedCapValue); err != nil {
|
if err := rapl.Cap(host, "rapl", roundedCapValue); err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("Capped [%s] at %d", host, int(math.Floor(capValue+0.5)))
|
log.Printf("Capped [%s] at %d", host, roundedCapValue)
|
||||||
}
|
}
|
||||||
bpswClassMapWattsPistonPreviousRoundedCapValues[host] = roundedCapValue
|
bpswClassMapWattsPistonPreviousRoundedCapValues[host] = roundedCapValue
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue