- fix build: we're using a new gcache module now

This commit is contained in:
Simon Zolin 2019-08-16 15:43:12 +03:00
parent d46ebe1c8b
commit b37208564b
1 changed files with 3 additions and 3 deletions

View File

@ -282,9 +282,9 @@ func (d *dayTop) getStatsTop() *StatsTop {
d.hoursReadLock() d.hoursReadLock()
for hour := 0; hour < 24; hour++ { for hour := 0; hour < 24; hour++ {
d.hours[hour].RLock() d.hours[hour].RLock()
do(d.hours[hour].domains.Keys(), d.hours[hour].lockedGetDomains, s.Domains) do(d.hours[hour].domains.Keys(false), d.hours[hour].lockedGetDomains, s.Domains)
do(d.hours[hour].blocked.Keys(), d.hours[hour].lockedGetBlocked, s.Blocked) do(d.hours[hour].blocked.Keys(false), d.hours[hour].lockedGetBlocked, s.Blocked)
do(d.hours[hour].clients.Keys(), d.hours[hour].lockedGetClients, s.Clients) do(d.hours[hour].clients.Keys(false), d.hours[hour].lockedGetClients, s.Clients)
d.hours[hour].RUnlock() d.hours[hour].RUnlock()
} }
d.hoursReadUnlock() d.hoursReadUnlock()