Files
2026-01-10 01:09:25 -08:00

24 lines
438 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package resource
import "math"
// NoUsage implements Usage() by always returning 0.
var NoUsage User = noUsage{}
type noUsage struct{}
func (noUsage) CPUUsage() float64 {
return 0
}
func (noUsage) DiskUsage() (float64, float64) {
return 0, 0
}
func (noUsage) AvailableDiskBytes() uint64 {
return math.MaxUint64
}