set lastUpdated after cache calculation

This commit is contained in:
Samir Patel 2021-05-24 20:15:21 -05:00 • committed by Samir Patel
parent 20f8479f41
commit be10927ca7

1
api.go
View file

@ -1046,6 +1046,7 @@ func (api *API) calculateUsage() {
cache.data[api.server.nodeID] = nodeUsage
}
cache.lastUpdated = time.Now()
}