summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2022-07-12 21:17:06 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2022-07-12 21:17:06 (GMT)
commitde0fea22abdc72a8a975bb7243f90cf48368f618 (patch)
tree799e34607ab3027ac22b0aea27acc038c7be222d
parent080a93d88d110f45654f5b595d0c116f66a83d15 (diff)
downloadpublik-website-de0fea22abdc72a8a975bb7243f90cf48368f618.zip
publik-website-de0fea22abdc72a8a975bb7243f90cf48368f618.tar.gz
publik-website-de0fea22abdc72a8a975bb7243f90cf48368f618.tar.bz2
adjust rate with current numbers
-rw-r--r--static/js/combo.public.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/combo.public.js b/static/js/combo.public.js
index a21937c..1d0879f 100644
--- a/static/js/combo.public.js
+++ b/static/js/combo.public.js
@@ -53,10 +53,10 @@ $(function() {
var base_date = new Date("2022-07-12T00:00:00");
var diff = (Date.now() - base_date.getTime()) / 1000;
/* approx rate on base date: 1 request every 26 seconds
- * December 1st: 2250000, December 31st: 2380000
- * 1 / ((2380000 - 2250000) / (86400seconds * 31days)) -> 20
+ * June 1st: 4680000, July 1st: 4930000
+ * 1 / ((4930000 - 4680000) / (86400seconds * 31days)) -> 10
*/
- return base_number + (diff / 20);
+ return base_number + (diff / 10);
}
//var count = new CountUp("counter", 1234, parseInt(total), 0, 4.5, options);
var count = new CountUp("counter", 1, parseInt(get_current_count()), 0, 4.5, options);