Rapl node capping daemon #21
1 changed files with 0 additions and 5 deletions
|
@ -34,11 +34,6 @@ func powercapEndpoint(w http.ResponseWriter, r *http.Request) {
|
|||
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
|
||||
return
|
||||
}
|
||||
|
||||
if payload.Percentage < 0 || payload.Percentage > 100 {
|
||||
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
|
||||
http.Error(w, "Bad payload: percentage must be between 0 and 100", 400)
|
||||
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
|
||||
return
|
||||
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
|
||||
}
|
||||
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
|
||||
|
||||
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
|
||||
err = capNode(powercapDir, payload.Percentage)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), 400)
|
||||
|
|
|||
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
![]() missing period at the end of the sentence. missing period at the end of the sentence.
![]() missing period at end of sentence. missing period at end of sentence.
|
Reference in a new issue
missing period at the end of the sentence.
missing period at end of sentence.