From a785eb0f16d0faea74880ad3af70cb59e7b5e669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pete=20Nyk=C3=A4nen?= Date: Tue, 23 Jan 2018 12:27:33 +0200 Subject: [PATCH] Set stop time based off query bounds if query is grouped by time --- batch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch.go b/batch.go index f1a475745..174c362b7 100644 --- a/batch.go +++ b/batch.go @@ -316,7 +316,7 @@ func (n *QueryNode) doQuery(in edge.Edge) error { } for _, bch := range batches { // Set stop time based off query bounds - if bch.Begin().Time().IsZero() || !n.query.IsGroupedByTime() { + if bch.Begin().Time().IsZero() || n.query.IsGroupedByTime() { bch.Begin().SetTime(stop) }