Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 1, 2024
1 parent 6427ced commit 87b9bda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/retrieve_domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ log_event() {
# otherwise, the default values are used.
log_source() {
local item
total_whitelisted_count="$((whitelisted_count + whitelisted_tld_count))"
total_whitelisted_count="$(( whitelisted_count + whitelisted_tld_count ))"
excluded_count="$(( dead_count + redundant_count + parked_count ))"

if [[ "$source" == 'Google Search' ]]; then
Expand All @@ -269,14 +269,14 @@ log_source() {
fi

echo "${TIME_FORMAT},${source},${search_term},${unfiltered_count:-0},
${filtered_count:-0},${total_whitelisted_count:-0},${dead_count:-0},${redundant_count:-0},
${filtered_count:-0},${total_whitelisted_count},${dead_count:-0},${redundant_count},
${parked_count:-0},${toplist_count:-0},$(tr '\n' ' ' <<< "$domains_in_toplist"),
${query_count:-0},${rate_limited:-false}" >> "$SOURCE_LOG"

printf "\n\e[1mSource:\e[0m %s\n" "${item:-$source}"
printf "Raw:%4s Final:%4s Whitelisted:%4s Excluded:%4s Toplist:%4s\n" \
"${unfiltered_count:-0}" "${filtered_count:-0}" \
"${total_whitelisted_count:-0}" "$excluded_count" "${toplist_count:-0}"
"$total_whitelisted_count" "$excluded_count" "${toplist_count:-0}"
printf "%s\n" "----------------------------------------------------------------------"
}

Expand Down

0 comments on commit 87b9bda

Please sign in to comment.