1
0
Fork 0
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:
Kane York 2015-11-21 12:10:01 -08:00
parent 38972364fb
commit 6f13ea360c
2 changed files with 7 additions and 4 deletions

View file

@ -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 {