Pārlūkot izejas kodu

Add currency code to custom pricing setting cache

Niko Kovacevic 6 gadi atpakaļ
vecāks
revīzija
6d1a45c565
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      costmodel/router.go

+ 2 - 2
costmodel/router.go

@@ -336,8 +336,8 @@ func (a *Accesses) CustomPricingHasChanged() bool {
 	// describe parameters by which we determine whether or not custom
 	// pricing settings have changed
 	encodeCustomPricing := func(cp *costAnalyzerCloud.CustomPricing) string {
-		return fmt.Sprintf("%s:%s:%s:%s:%s:%s:%s", cp.CustomPricesEnabled, cp.CPU, cp.SpotCPU,
-			cp.RAM, cp.SpotRAM, cp.GPU, cp.Storage)
+		return fmt.Sprintf("%s:%s:%s:%s:%s:%s:%s:%s", cp.CustomPricesEnabled, cp.CPU, cp.SpotCPU,
+			cp.RAM, cp.SpotRAM, cp.GPU, cp.Storage, cp.CurrencyCode)
 	}
 
 	// compare cached custom pricing parameters with current values