1
0
mirror of https://github.com/beestat/app.git synced 2026-05-27 09:32:35 -04:00

Fixed #139 - Aggregate runtime week off by one

This commit is contained in:
Jon Ziebell
2019-07-24 22:21:16 -04:00
parent 7c0b088996
commit b0da83bc2b
2 changed files with 31 additions and 7 deletions
+4
View File
@@ -141,6 +141,10 @@ beestat.component.card.aggregate_runtime.prototype.decorate_contents_ = function
var y_max_hours;
var tick_interval;
switch (beestat.setting('aggregate_runtime_group_by')) {
case 'year':
y_max_hours = 8760;
tick_interval = 2190;
break;
case 'month':
y_max_hours = 672;
tick_interval = 168;