Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Zuniga authored and Jose Zuniga committed Dec 2, 2024
1 parent 36a12eb commit 913b886
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
Expand All @@ -338,7 +338,7 @@ script "js_recommendations", type: "javascript" do
})
}
})
EOS
EOS
end

###############################################################################
Expand Down

0 comments on commit 913b886

Please sign in to comment.