fix: mem/mem_solaris.go:146:59: undefined: swapCommand - typo swapsCommand

pull/1142/head
maier 3 years ago
parent 5e4b256b03
commit 87fc40cbd6

@ -1,3 +1,4 @@
//go:build solaris
// +build solaris // +build solaris
package mem package mem
@ -143,7 +144,7 @@ func SwapDevices() ([]*SwapDevice, error) {
func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) { func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) {
swapsCommandPath, err := exec.LookPath(swapsCommand) swapsCommandPath, err := exec.LookPath(swapsCommand)
if err != nil { if err != nil {
return nil, fmt.Errorf("could not find command %q: %w", swapCommand, err) return nil, fmt.Errorf("could not find command %q: %w", swapsCommand, err)
} }
output, err := invoke.CommandWithContext(swapsCommandPath, "-l") output, err := invoke.CommandWithContext(swapsCommandPath, "-l")
if err != nil { if err != nil {

Loading…
Cancel
Save