We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d9800 commit bcb3f72Copy full SHA for bcb3f72
app/lib/service/download_counts/package_trends.dart
@@ -35,7 +35,7 @@ double computeRelativeGrowthRate(List<int> totalDownloads) {
35
recentDownloads.reduce((prev, element) => prev + element) /
36
recentDownloads.length;
37
38
- if (averageRecentDownloads.abs() < 1e-9) {
+ if (averageRecentDownloads == 0) {
39
return 0;
40
}
41
0 commit comments