Skip to content

Commit 9b5568b

Browse files
committed
Pass all precision instead of artificially limiting
Signed-off-by: Thomas Jackson <[email protected]>
1 parent c52580d commit 9b5568b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/prometheus/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ func (h *httpAPI) QueryRange(ctx context.Context, query string, r Range) (model.
678678
q.Set("query", query)
679679
q.Set("start", formatTime(r.Start))
680680
q.Set("end", formatTime(r.End))
681-
q.Set("step", strconv.FormatFloat(r.Step.Seconds(), 'f', 3, 64))
681+
q.Set("step", strconv.FormatFloat(r.Step.Seconds(), 'f', -1, 64))
682682

683683
_, body, warnings, err := api.DoGetFallback(h.client, ctx, u, q)
684684
if err != nil {

0 commit comments

Comments
 (0)