Skip to content

Commit

Permalink
Merge pull request #17957 from Homebrew/analytics-hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Aug 4, 2024
2 parents 73bc8e2 + ab4f14b commit 9279693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def output_github_packages_downloads(formula, args:)

last_thirty_days_downloads = last_thirty_days_match.captures.first.tr(",", "")
thirty_day_download_count += if (millions_match = last_thirty_days_downloads.match(/(\d+\.\d+)M/).presence)
millions_match.captures.first.to_i * 1_000_000
millions_match.captures.first.to_f * 1_000_000
else
last_thirty_days_downloads.to_i
end
Expand Down

0 comments on commit 9279693

Please sign in to comment.