mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-31 10:20:55 +00:00
Add BackendVerifyFails to /stats to count request spam
This commit is contained in:
parent
38972364fb
commit
6f13ea360c
2 changed files with 7 additions and 4 deletions
|
@ -46,6 +46,8 @@ type StatsData struct {
|
|||
|
||||
EmotesReportedTotal uint64
|
||||
|
||||
BackendVerifyFails uint64
|
||||
|
||||
// DisconnectReasons is at the bottom because it has indeterminate size
|
||||
DisconnectReasons map[string]uint64
|
||||
}
|
||||
|
@ -57,7 +59,7 @@ type StatsData struct {
|
|||
// I don't really care.
|
||||
var Statistics = newStatsData()
|
||||
|
||||
const StatsDataVersion = 4
|
||||
const StatsDataVersion = 5
|
||||
const pageSize = 4096
|
||||
|
||||
var cpuUsage struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue