
(cherry picked from commit f6fa56194f
)
Signed-off-by: Xinfeng Liu <XinfengLiu@icloud.com>
19 lines
667 B
Go
19 lines
667 B
Go
package daemon // import "github.com/docker/docker/daemon"
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/container"
|
|
)
|
|
|
|
// Windows network stats are obtained directly through HCS, hence this is a no-op.
|
|
func (daemon *Daemon) getNetworkStats(c *container.Container) (map[string]types.NetworkStats, error) {
|
|
return make(map[string]types.NetworkStats), nil
|
|
}
|
|
|
|
// getSystemCPUUsage returns the host system's cpu usage in
|
|
// nanoseconds and number of online CPUs. An error is returned
|
|
// if the format of the underlying file does not match.
|
|
// This is a no-op on Windows.
|
|
func getSystemCPUUsage() (uint64, uint32, error) {
|
|
return 0, 0, nil
|
|
}
|