Skip to content

Commit 4c6389c

Browse files
committed
Use hourly readings for more than one day range
1 parent 1aac11b commit 4c6389c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Wihlo/Data.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ sub _build_readings_graph
203203
sub _build_group_by
204204
{ my $self = shift;
205205
my $diff = $self->from->subtract_datetime( $self->to );
206-
my $group = !$diff->months && !$diff->years && !$diff->weeks
206+
my $group = !$diff->months && !$diff->years && !$diff->weeks && $diff->days < 2
207207
? 'minute'
208208
: !$diff->months && !$diff->years
209209
? 'hour'

0 commit comments

Comments
 (0)