diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index f43fc88375d46..1172462d084fe 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -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