diff --git a/cost/kubecost/cluster/kubecost_cluster_rightsizing_recommendations.pt b/cost/kubecost/cluster/kubecost_cluster_rightsizing_recommendations.pt index 90a60590a5..071bc86bba 100644 --- a/cost/kubecost/cluster/kubecost_cluster_rightsizing_recommendations.pt +++ b/cost/kubecost/cluster/kubecost_cluster_rightsizing_recommendations.pt @@ -316,10 +316,10 @@ script "js_recommendations", type: "javascript" do totalNodeCount: crs['totalNodeCount'], totalRAMGB: crs['totalRAMGB'], totalVCPUs: crs['totalVCPUs'], - monthlyRate: Math.round(crs['monthlyRate'] * 1000) / 1000,, - totalMonthlyCost: Math.round(recommendation['totalMonthlyCost'] * 1000) / 1000, + monthlyRate: Math.round(crs['monthlyRate'] * 1000) / 1000, + totalMonthlyCost: Math.round(crs['totalMonthlyCost'] * 1000) / 1000, // Note: Savings is presented as a negative value. Hence why we multiply by a negative number to invert it - savings: Math.round(recommendation['monthlySavings'] * -1000) / 1000, + savings: Math.round(crs['monthlySavings'] * -1000) / 1000, savingsCurrency: ds_currency['symbol'], nodeCount: recommendation['nodeCount'], pools: JSON.stringify(recommendation['pools']), @@ -338,7 +338,7 @@ script "js_recommendations", type: "javascript" do }) } }) -EOS + EOS end ###############################################################################