Explorar el Código

Label the RAMCost log output

Otherwise it's just a number that shows up, without context
Matthew L Daniel hace 7 años
padre
commit
a9545b4889
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      costmodel/costmodel.go

+ 1 - 1
costmodel/costmodel.go

@@ -282,7 +282,7 @@ func getNodeCost(clientset *kubernetes.Clientset, cloud costAnalyzerCloud.Provid
 			cnode.VCPUCost = fmt.Sprintf("%f", cpuPrice)
 			cnode.RAMCost = fmt.Sprintf("%f", ramPrice)
 			cnode.RAMBytes = fmt.Sprintf("%f", ram)
-			log.Printf(cnode.RAMCost)
+			log.Printf("Node \"%s\" RAM Cost := %v", name, cnode.RAMCost)
 		}
 		nodes[name] = cnode
 	}