Browse Source

Set timestamp for date functions (#3070)

pull/3103/head
Brian Brazil 7 years ago committed by GitHub
parent
commit
2354c2544b
  1. 5
      promql/functions.go

5
promql/functions.go

@ -914,8 +914,9 @@ func dateWrapper(ev *evaluator, args Expressions, f func(time.Time) model.Sample
if len(args) == 0 {
v = vector{
&sample{
Metric: metric.Metric{},
Value: model.SampleValue(ev.Timestamp.Unix()),
Metric: metric.Metric{},
Value: model.SampleValue(ev.Timestamp.Unix()),
Timestamp: ev.Timestamp,
},
}
} else {

Loading…
Cancel
Save