We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aac11b commit 4c6389cCopy full SHA for 4c6389c
lib/Wihlo/Data.pm
@@ -203,7 +203,7 @@ sub _build_readings_graph
203
sub _build_group_by
204
{ my $self = shift;
205
my $diff = $self->from->subtract_datetime( $self->to );
206
- my $group = !$diff->months && !$diff->years && !$diff->weeks
+ my $group = !$diff->months && !$diff->years && !$diff->weeks && $diff->days < 2
207
? 'minute'
208
: !$diff->months && !$diff->years
209
? 'hour'
0 commit comments