Просмотр исходного кода

Fix window string in costDataRange profiling

Niko Kovacevic 6 лет назад
Родитель
Сommit
9ed46c2173
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      costmodel/costmodel.go

+ 1 - 1
costmodel/costmodel.go

@@ -1380,7 +1380,7 @@ func (cm *CostModel) costDataRange(cli prometheusClient.Client, clientset kubern
 
 	durHrs := end.Sub(start).Hours() + 1
 	durStr := fmt.Sprintf("%fh", durHrs)
-	if durHrs > 24.0 {
+	if durHrs >= 24.0 {
 		durStr = fmt.Sprintf("%fd", durHrs/24.0)
 	}