1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

add visibility for how many items in response cache

This commit is contained in:
Kane York 2017-09-25 14:28:21 -07:00
parent a5e3ad701b
commit bdd5b5416d

View file

@ -38,9 +38,8 @@ type StatsData struct {
MemoryInUseKB uint64
MemoryRSSKB uint64
LowMemDroppedConnections uint64
MemPerClientBytes uint64
ResponseCacheItems uint64
MemPerClientBytes uint64
CpuUsagePct float64
@ -84,7 +83,7 @@ func commandCounter() {
}
// StatsDataVersion is the version of the StatsData struct.
const StatsDataVersion = 7
const StatsDataVersion = 8
const pageSize = 4096
var cpuUsage struct {
@ -170,6 +169,7 @@ func updatePeriodicStats() {
{
Statistics.Uptime = nowUpdate.Sub(Statistics.StartTime).String()
Statistics.ResponseCacheItems = Backend.responseCache.ItemCount()
}
{