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:
parent
a5e3ad701b
commit
bdd5b5416d
1 changed files with 4 additions and 4 deletions
|
@ -38,8 +38,7 @@ type StatsData struct {
|
|||
MemoryInUseKB uint64
|
||||
MemoryRSSKB uint64
|
||||
|
||||
LowMemDroppedConnections 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()
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue