From 268e710e6922c32a86fddedca0ad17888edce806 Mon Sep 17 00:00:00 2001 From: Samir Patel <48686912+54mir@users.noreply.github.com> Date: Thu, 10 Jun 2021 17:36:03 -0500 Subject: [PATCH] update comment --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index 8211d55ee..08523b4f9 100644 --- a/api.go +++ b/api.go @@ -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()