Fix format string

This commit is contained in:
Lou Knauer 2021-11-26 10:38:38 +01:00
parent 2c81a96133
commit 6387333add

View File

@ -57,7 +57,7 @@ func (ccms *CCMetricStore) Init() error {
}
func (ccms *CCMetricStore) LoadData(job *model.Job, metrics []string, ctx context.Context) (schema.JobData, error) {
from, to := job.StartTime.Unix(), job.StartTime.Add(time.Duration(job.Duration)*time.Second)
from, to := job.StartTime.Unix(), job.StartTime.Add(time.Duration(job.Duration)*time.Second).Unix()
reqBody := ApiRequestBody{}
reqBody.Metrics = metrics
for _, node := range job.Nodes {