mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 00:45:43 +03:00
cgroupslib.MaybeDisableMemorySwappiness returned an incorrect type, and was incorrectly typecast to int64 causing a panic on non-linux and non-windows hosts.
17 lines
355 B
Go
17 lines
355 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !linux
|
|
|
|
package cgroupslib
|
|
|
|
// LinuxResourcesPath does nothing on non-Linux systems
|
|
func LinuxResourcesPath(string, string) string {
|
|
return ""
|
|
}
|
|
|
|
// MaybeDisableMemorySwappiness does nothing on non-Linux systems
|
|
func MaybeDisableMemorySwappiness() *uint64 {
|
|
return nil
|
|
}
|