update comment

This commit is contained in:
Samir Patel 2021-06-10 17:36:03 -05:00
parent 9b11ded9e3
commit 268e710e69

2
api.go
View file

@ -952,7 +952,7 @@ type MemoryUsage struct {
TotalUse uint64 `json:"totalInUse"`
}
// Returns disk usage from cache. Waits for calculation if cache is empty.
// Returns disk usage from cache if cache is large. It will recalculate on the spot of the last cacluation was under 5 seconds.
func (api *API) Usage(ctx context.Context, remote bool) (map[string]NodeUsage, error) {
span, _ := tracing.StartSpanFromContext(ctx, "API.Usage")
defer span.Finish()