We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4cb89a + cd27091 commit ff1d4e2Copy full SHA for ff1d4e2
api/prometheus/v1/api.go
@@ -873,5 +873,5 @@ func (c apiClient) Do(ctx context.Context, req *http.Request) (*http.Response, [
873
}
874
875
func formatTime(t time.Time) string {
876
- return strconv.FormatFloat(float64(t.UnixNano())/1e9, 'f', -1, 64)
+ return strconv.FormatFloat(float64(t.Unix())+float64(t.Nanosecond())/1e9, 'f', -1, 64)
877
0 commit comments