mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
freebsd: drop dead code
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -6,10 +6,8 @@ package libpod
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/containers/common/pkg/cgroups"
|
||||
"github.com/containers/podman/v4/libpod/define"
|
||||
"github.com/containers/podman/v4/pkg/rctl"
|
||||
"github.com/containers/storage/pkg/system"
|
||||
@ -144,18 +142,6 @@ func calculateCPUPercent(currentCPU, previousCPU, now, previousSystem uint64) fl
|
||||
return cpuPercent
|
||||
}
|
||||
|
||||
func calculateBlockIO(stats *cgroups.Metrics) (read uint64, write uint64) {
|
||||
for _, blkIOEntry := range stats.Blkio.IoServiceBytesRecursive {
|
||||
switch strings.ToLower(blkIOEntry.Op) {
|
||||
case "read":
|
||||
read += blkIOEntry.Value
|
||||
case "write":
|
||||
write += blkIOEntry.Value
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func getOnlineCPUs(container *Container) (int, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user