Skip to content

Commit

Permalink
Merge branch 'master' into fmtver
Browse files Browse the repository at this point in the history
  • Loading branch information
lucklove authored Dec 24, 2020
2 parents 27980a7 + 081877a commit afe2b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/operation/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func CheckTHP(e executor.Executor) *CheckResult {
return result
}

for _, line := range strings.Split(string(stdout), "\n") {
for _, line := range strings.Split(strings.Trim(string(stdout), "\n"), "\n") {
if !strings.Contains(line, "[never]") {
result.Err = fmt.Errorf("THP is enabled, please disable it for best performance")
return result
Expand Down

0 comments on commit afe2b12

Please sign in to comment.