mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
Update api.go
Co-authored-by: Alan Bernstein <alanaaronbernstein@gmail.com>
This commit is contained in:
parent
d83a502657
commit
fb11d7f656
1 changed files with 1 additions and 1 deletions
2
api.go
2
api.go
|
|
@ -1068,7 +1068,7 @@ func (api *API) RefreshUsageCache(dutyCycle float64) {
|
|||
if dutyCycle <= 0 {
|
||||
dutyCycle = 20
|
||||
}
|
||||
multiplier := 100 / dutyCycle
|
||||
multiplier := 100 / dutyCycle - 1
|
||||
|
||||
api.usageCache = &usageCache{
|
||||
data: make(map[string]NodeUsage),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue