diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 650c245c..93b5f1e5 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -259,7 +259,7 @@ endif;
= __('Popularity') . ': ' ?> |
- = number_format($popularity, 6) ?> |
+ = number_format($popularity, $popularity >= .2 ? 2 : 6) ?> |
= __('First Submitted') . ': ' ?> |
diff --git a/web/template/pkgbase_details.php b/web/template/pkgbase_details.php
index 8a6e2b44..b2ce8cbe 100644
--- a/web/template/pkgbase_details.php
+++ b/web/template/pkgbase_details.php
@@ -108,7 +108,7 @@ endif;
= __('Popularity') . ': ' ?> |
- = number_format($popularity, 6) ?> |
+ = number_format($popularity, $popularity >= .2 ? 2 : 6) ?> |
= __('First Submitted') . ': ' ?> |