count iframes only if there isn't an error
This commit is contained in:
parent
3264288752
commit
0c9ad5bfd6
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ func main() {
|
||||||
stats.TitlesFound.Add(1)
|
stats.TitlesFound.Add(1)
|
||||||
}
|
}
|
||||||
stats.IconsFound.Add(int64(len(result.Icons)))
|
stats.IconsFound.Add(int64(len(result.Icons)))
|
||||||
if !result.IframeAllowed {
|
if result.Err == nil && !result.IframeAllowed {
|
||||||
stats.IframeBlocked.Add(1)
|
stats.IframeBlocked.Add(1)
|
||||||
}
|
}
|
||||||
if result.Err != nil {
|
if result.Err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue