فهرست منبع

Resolve per GB correctly

Matt Bolt 6 سال پیش
والد
کامیت
1be27ee2b9
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      pkg/cloud/azureprovider.go

+ 2 - 2
pkg/cloud/azureprovider.go

@@ -408,8 +408,8 @@ func (az *Azure) DownloadPricingData() error {
 						for _, rate := range v.MeterRates {
 							priceInUsd += *rate
 						}
-						// rate is in GB per month, resolve to GB per hour
-						pricePerHour := priceInUsd / 730.0
+						// rate is in disk per month, resolve price per hour, then GB per hour
+						pricePerHour := priceInUsd / 730.0 / 32.0
 						priceStr := fmt.Sprintf("%f", pricePerHour)
 
 						key := region + "," + storageClass