From 614769045fbccbb75e809b10df29759ad11e5b02 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Mon, 21 Mar 2022 19:00:39 -0500 Subject: [PATCH] adds percent processed --- cmd/bind/cleanup.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/bind/cleanup.go b/cmd/bind/cleanup.go index 1b5ba48..247374b 100644 --- a/cmd/bind/cleanup.go +++ b/cmd/bind/cleanup.go @@ -50,7 +50,8 @@ func cleanBadDomains(domains []string) []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 { if regexp.MustCompile(allowedItem).MatchString(v) { log.Printf("[DEBUG] Removing allowed matching item: %s\n", v)