diff --git a/libpod/stats_freebsd.go b/libpod/stats_freebsd.go index 9e8a09aefd..22141906c0 100644 --- a/libpod/stats_freebsd.go +++ b/libpod/stats_freebsd.go @@ -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 }