Explorar o código

remove double add

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer %!s(int64=3) %!d(string=hai) anos
pai
achega
ddd8bcb8fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/cloud/gcpprovider.go

+ 1 - 1
pkg/cloud/gcpprovider.go

@@ -868,7 +868,7 @@ func (gcp *GCP) parsePage(r io.Reader, inputKeys map[string]Key, pvKeys map[stri
 
 							// as per https://cloud.google.com/billing/v1/how-tos/catalog-api
 							// the hourly price is the whole currency price + the fractional currency price
-							hourlyPrice := (nanos * math.Pow10(-9)) + +float64(unitsBaseCurrency)
+							hourlyPrice := (nanos * math.Pow10(-9)) + float64(unitsBaseCurrency)
 
 							if hourlyPrice == 0 {
 								continue