Author: humbedooh
Date: Tue Aug  6 16:45:41 2019
New Revision: 1864543

URL: http://svn.apache.org/viewvc?rev=1864543&view=rev
Log:
Relax requirements to showing lists on stats page, as per janhoy's suggestion.

Modified:
    
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: 
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js?rev=1864543&r1=1864542&r2=1864543&view=diff
==============================================================================
--- 
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js 
(original)
+++ 
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js 
Tue Aug  6 16:45:41 2019
@@ -153,9 +153,9 @@ function statistics_health(data) {
         if (isNaN(pct_change) || !isFinite(pct_change)) {
             pct_change_txt = 'big';
         }
-        if (pct_change > 25 && mldata.quarterly[0] > 5) {
+        if (pct_change >= 0 && mldata.quarterly[0] > 10) {
             txt += "<h6 style='color: #080'>%s had a %s increase in traffic in 
the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, 
mldata.quarterly[0], mldata.quarterly[1]);
-        } else if (pct_change < -25 && mldata.quarterly[1] > 5) {
+        } else if (pct_change < 0 && mldata.quarterly[1] > 10) {
             txt += "<h6 style='color: #800'>%s had a %s decrease in traffic in 
the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, 
mldata.quarterly[0], mldata.quarterly[1]);
         }
 

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864543&r1=1864542&r2=1864543&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Tue Aug  6 
16:45:41 2019
@@ -2252,9 +2252,9 @@ function statistics_health(data) {
         if (isNaN(pct_change) || !isFinite(pct_change)) {
             pct_change_txt = 'big';
         }
-        if (pct_change > 25 && mldata.quarterly[0] > 5) {
+        if (pct_change >= 0 && mldata.quarterly[0] > 10) {
             txt += "<h6 style='color: #080'>%s had a %s increase in traffic in 
the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, 
mldata.quarterly[0], mldata.quarterly[1]);
-        } else if (pct_change < -25 && mldata.quarterly[1] > 5) {
+        } else if (pct_change < 0 && mldata.quarterly[1] > 10) {
             txt += "<h6 style='color: #800'>%s had a %s decrease in traffic in 
the past quarter (%u emails compared to %u):</h6>".format(ml, pct_change_txt, 
mldata.quarterly[0], mldata.quarterly[1]);
         }
 


Reply via email to