Only divide by 3 in non-public zones
@@ -2001,7 +2001,10 @@ public class ApplicationApiHandler extends LoggingRequestHandler {
object.setLong("nodes", resources.nodes());
object.setLong("groups", resources.groups());
toSlime(resources.nodeResources(), object.setObject("nodeResources"));
- object.setDouble("cost", Math.round(resources.nodes() * resources.nodeResources().cost() * 100.0 / 3.0) / 100.0);
+
+ // Divide cost by 3 in non-public zones to show approx. AWS equivalent cost
+ double costDivisor = controller.zoneRegistry().system().isPublic() ? 1.0 : 3.0;
+ object.setDouble("cost", Math.round(resources.nodes() * resources.nodeResources().cost() * 100.0 / costDivisor) / 100.0);
}
private void utilizationToSlime(Cluster.Utilization utilization, Cursor utilizationObject) {
