add docker
This commit is contained in:
15
pkg/sysstats/sysstats_other.go
Normal file
15
pkg/sysstats/sysstats_other.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build !linux
|
||||
|
||||
package sysstats
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Host CPU, memory, load and uptime are only read from /proc on Linux.
|
||||
|
||||
func cpuUsage(context.Context, time.Duration) (*float64, error) { return nil, nil }
|
||||
func memory() *Memory { return nil }
|
||||
func loadAvg() *[3]float64 { return nil }
|
||||
func hostUptime() *int64 { return nil }
|
||||
Reference in New Issue
Block a user