fix issue with "total valid" showing up as negative
This commit is contained in:
parent
ea89052ef0
commit
2ce41d0637
|
@ -85,6 +85,7 @@ func (p *ForwardProxyCluster) ValidateProxiesThread() {
|
|||
okToAdd = false
|
||||
newThirdpartyBrokenProxies = append(newThirdpartyBrokenProxies, pxy)
|
||||
log.Debugf("Validate - Third-party %s failed: %s", proxyHost, bv3hiErr)
|
||||
break
|
||||
}
|
||||
}
|
||||
if okToAdd {
|
||||
|
@ -121,7 +122,8 @@ func (p *ForwardProxyCluster) ValidateProxiesThread() {
|
|||
|
||||
p.mu.RLock()
|
||||
log.Infof("Our Endpoints Online: %d, Third-Party Endpoints Online: %d, Third-Party Broken Endpoints: %d, Total Valid: %d",
|
||||
len(p.ourOnlineProxies), len(p.thirdpartyOnlineProxies), len(p.thirdpartyBrokenProxies), len(p.ourOnlineProxies)+(len(p.thirdpartyOnlineProxies)-len(p.thirdpartyBrokenProxies)))
|
||||
len(p.ourOnlineProxies), len(p.thirdpartyOnlineProxies), len(p.thirdpartyBrokenProxies), len(p.ourOnlineProxies)+len(p.thirdpartyOnlineProxies),
|
||||
)
|
||||
p.mu.RUnlock()
|
||||
|
||||
p.refreshInProgress = false
|
||||
|
|
Loading…
Reference in New Issue