Loading modules/cloud_service_providers/aws_cloud/src/Service/Ec2/Ec2Service.php +1 −1 Original line number Diff line number Diff line Loading @@ -4137,7 +4137,7 @@ class Ec2Service extends CloudServiceBase implements Ec2ServiceInterface { $parts = explode(':', $instance_types[$instance_type]); $hourly_rate = $parts[4]; $launch_time = strtotime($instance['LaunchTime']->__toString()); $cost = round((time() - $launch_time) / 3600 * $hourly_rate, 2); $cost = round((time() - $launch_time) / 3600 * floatval($hourly_rate), 2); } return $cost; } Loading Loading
modules/cloud_service_providers/aws_cloud/src/Service/Ec2/Ec2Service.php +1 −1 Original line number Diff line number Diff line Loading @@ -4137,7 +4137,7 @@ class Ec2Service extends CloudServiceBase implements Ec2ServiceInterface { $parts = explode(':', $instance_types[$instance_type]); $hourly_rate = $parts[4]; $launch_time = strtotime($instance['LaunchTime']->__toString()); $cost = round((time() - $launch_time) / 3600 * $hourly_rate, 2); $cost = round((time() - $launch_time) / 3600 * floatval($hourly_rate), 2); } return $cost; } Loading