diff --git a/stats.go b/stats.go index 42cc939..b8709a6 100644 --- a/stats.go +++ b/stats.go @@ -50,6 +50,11 @@ func (stats *Statistics) http() { stats.ValidHTTP++ } +// GetTotalValidated retrieves our grand total validated proxy count. +func (p *Swamp) GetTotalValidated() int { + return p.Stats.Valid4a + p.Stats.Valid4 + p.Stats.Valid5 + p.Stats.ValidHTTP +} + // GetUptime returns the total lifetime duration of our pool. func (stats *Statistics) GetUptime() time.Duration { return time.Since(stats.birthday)