devshort

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/devshort.git
Log | Files | Refs | README | LICENSE

commit 9d93f2577012bc380f6602876f52ea5d6cbcac19
parent 3ade14b1548e8bad48eadbb071c2032631827a3c
Author: Florian <flokX@users.noreply.github.com>
Date:   Fri, 17 Jan 2020 18:33:27 +0100

Fix total access count

Diffstat:
Massets/main.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assets/main.js b/assets/main.js @@ -97,9 +97,9 @@ Vue.component('chart', { if (((currentDate - timestamp) / (60 * 60 * 24 * 1000)) <= 7) { this.accessCount.sevenDays += count; } + this.accessCount.total += count; dataset.push({ x: timestamp, y: count }); } - this.accessCount.total = dataset.length; this.chart = new Chart(ctx, chartOptions); this.chart.data.datasets[0].data = dataset; this.chart.options.title.text = 'Accesses to ' + this.name;