rename flag and add default value for flag

This commit is contained in:
Samir Patel 2021-05-25 00:13:03 -05:00 committed by Samir Patel
parent 827b125c3c
commit 9beb3f0b3a
2 changed files with 1 additions and 2 deletions

1
api.go
View file

@ -959,7 +959,6 @@ func (api *API) Usage(ctx context.Context, remote bool) (map[string]NodeUsage, e
}
func (api *API) initUsageCache(refresh int) {
fmt.Println("Init Usage Cache")
api.usageCache = &usageCache{
data: make(map[string]NodeUsage),
refreshRateMins: refresh,

View file

@ -277,7 +277,7 @@ func (m *Command) Start() (err error) {
}
}
go m.API.RefreshUsageCache(m.Config.DiskUsageRefreshRate)
go m.API.RefreshUsageCache(m.Config.DiskUsage.RefreshRate)
_ = testhook.Opened(pilosa.NewAuditor(), m, nil)
close(m.Started)