Pass all precision instead of artificially limiting

Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
This commit is contained in:
Thomas Jackson 2019-07-09 07:31:01 -07:00
parent c52580de2b
commit 9b5568b9ab
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ func (h *httpAPI) QueryRange(ctx context.Context, query string, r Range) (model.
q.Set("query", query) q.Set("query", query)
q.Set("start", formatTime(r.Start)) q.Set("start", formatTime(r.Start))
q.Set("end", formatTime(r.End)) q.Set("end", formatTime(r.End))
q.Set("step", strconv.FormatFloat(r.Step.Seconds(), 'f', 3, 64)) q.Set("step", strconv.FormatFloat(r.Step.Seconds(), 'f', -1, 64))
_, body, warnings, err := api.DoGetFallback(h.client, ctx, u, q) _, body, warnings, err := api.DoGetFallback(h.client, ctx, u, q)
if err != nil { if err != nil {