Преглед на файлове

Fix inconsistency in timestamp usage within metric repository (#3273)

Signed-off-by: jdhudson3 <43144225+jdhudson3@users.noreply.github.com>
John Hudson преди 1 година
родител
ревизия
7c1438a576
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      modules/collector-source/pkg/metric/repository.go

+ 1 - 1
modules/collector-source/pkg/metric/repository.go

@@ -75,7 +75,7 @@ func (r *MetricRepository) Coverage() map[string][]time.Time {
 	for resKey, resCollector := range r.resolutionStores {
 		var windowStarts []time.Time
 		for _, key := range resCollector.getKeys() {
-			windowStarts = append(windowStarts, time.Unix(key, 0).UTC())
+			windowStarts = append(windowStarts, time.UnixMilli(key).UTC())
 		}
 		result[resKey] = windowStarts
 	}