adds percent processed
This commit is contained in:
parent
13b9f1c048
commit
614769045f
@ -50,7 +50,8 @@ func cleanBadDomains(domains []string) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
list = []string{}
|
list = []string{}
|
||||||
for _, v := range domains {
|
for k, v := range domains {
|
||||||
|
log.Printf("[DEBUG] Processing %d of %d (%0.2f%%)\n", k+1, len(domains), float64((k+1)/len(domains)))
|
||||||
for _, allowedItem := range goodAllowedItemList {
|
for _, allowedItem := range goodAllowedItemList {
|
||||||
if regexp.MustCompile(allowedItem).MatchString(v) {
|
if regexp.MustCompile(allowedItem).MatchString(v) {
|
||||||
log.Printf("[DEBUG] Removing allowed matching item: %s\n", v)
|
log.Printf("[DEBUG] Removing allowed matching item: %s\n", v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user