From 62bbf9d27721bfeeb1cbb82b1db21ad36d541469 Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 12 Dec 2024 21:20:51 +0300 Subject: [PATCH] Fix build on non-linux systems --- internal/lib/ionice_other.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/lib/ionice_other.go b/internal/lib/ionice_other.go index 29a61d0..6e759f7 100644 --- a/internal/lib/ionice_other.go +++ b/internal/lib/ionice_other.go @@ -5,12 +5,12 @@ package lib import proc "github.com/shirou/gopsutil/v3/process" -func GetIOPriority(which int, who int) (prio uint32, err error) { - return 0, NotImplementedError +func (cnf Config) GetIOPriority(which int, who int) (prio uint32, err error) { + return 0, cnf.NotImplementedError } -func SetIOPriority(which int, who int, prio uint32) (err error) { - return NotImplementedError +func (cnf Config) SetIOPriority(which int, who int, prio uint32) (err error) { + return cnf.NotImplementedError } -func IORenice(cnf Config, p *proc.Process, processName string) {} +func (cnf Config) IORenice(cnf Config, p *proc.Process, processName string) {}