Explorar el Código

Fix window string in costDataRange profiling

Niko Kovacevic hace 6 años
padre
commit
9ed46c2173
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 	durHrs := end.Sub(start).Hours() + 1
 	durStr := fmt.Sprintf("%fh", durHrs)
 	durStr := fmt.Sprintf("%fh", durHrs)
-	if durHrs > 24.0 {
+	if durHrs >= 24.0 {
 		durStr = fmt.Sprintf("%fd", durHrs/24.0)
 		durStr = fmt.Sprintf("%fd", durHrs/24.0)
 	}
 	}