AjayTripathy 6 лет назад
Родитель
Сommit
3c1a6a1962
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      costmodel/cluster.go

+ 1 - 3
costmodel/cluster.go

@@ -144,9 +144,7 @@ func resultToTotal(qr interface{}) (map[string][][]string, error) {
 // ClusterCostsForAllClusters gives the cluster costs averaged over a window of time for all clusters.
 func ClusterCostsForAllClusters(cli prometheusClient.Client, cloud costAnalyzerCloud.Provider, windowString, offset string) (map[string]*Totals, error) {
 
-	if offset != "" {
-		offset = fmt.Sprintf("offset 3h") // Set offset to 3h for block sync
-	}
+	offset = fmt.Sprintf("offset 3h") // Set offset to 3h for block sync
 
 	qCores := fmt.Sprintf(queryClusterCores, offset, offset, offset)
 	qRAM := fmt.Sprintf(queryClusterRAM, offset, offset)