AlteredCoder преди 5 години
родител
ревизия
597d6b5c60
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      cmd/crowdsec-cli/ban.go

+ 3 - 3
cmd/crowdsec-cli/ban.go

@@ -260,9 +260,9 @@ func BanList() error {
 			if !displayAPI {
 			if !displayAPI {
 				fmt.Printf("%d local decisions:\n", dispcount)
 				fmt.Printf("%d local decisions:\n", dispcount)
 			} else if displayAPI && !displayALL {
 			} else if displayAPI && !displayALL {
-				fmt.Printf("%d decision from API", dispcount)
+				fmt.Printf("%d decision from API\n", dispcount)
 			} else if displayALL && displayAPI {
 			} else if displayALL && displayAPI {
-				fmt.Printf("%d decision from crowdsec and API", dispcount)
+				fmt.Printf("%d decision from crowdsec and API\n", dispcount)
 			}
 			}
 			table.Render() // Send output
 			table.Render() // Send output
 			if dispcount > displayLimit && !displayALL {
 			if dispcount > displayLimit && !displayALL {
@@ -271,7 +271,7 @@ func BanList() error {
 		} else {
 		} else {
 			fmt.Printf("No local decisions.\n")
 			fmt.Printf("No local decisions.\n")
 		}
 		}
-		if !displayALL || displayAPI {
+		if !displayALL || !displayAPI {
 			fmt.Printf("And %d records from API, %d distinct AS, %d distinct countries\n", apicount, len(uniqAS), len(uniqCN))
 			fmt.Printf("And %d records from API, %d distinct AS, %d distinct countries\n", apicount, len(uniqAS), len(uniqCN))
 		}
 		}
 	}
 	}