jairov4 opened a new pull request #5517:
URL: https://github.com/apache/cloudstack/pull/5517


   ### Description
   
   The quota calculation has been wrong for monthly tariffs (like 
Compute-Month, GB-Month, etc) for so much time but even when #3448 was reported 
it was closed without evaluation.
   
   The wrong calculation was the price per hour, it was taking the monthly 
tariff and multiplying by the aggregation ratio which has no sense at all.
   
   The right price per hour is the monthly tariff divided by the standard 
number of hours in a month.
   
   Fixes #3448.
   
   <!--- 
*********************************************************************************
 -->
   <!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE 
DOCUMENTATION. -->
   <!--- PLEASE PUT AN 'X' in only **ONE** box -->
   <!--- 
*********************************************************************************
 -->
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [X] Major
   - [ ] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [X] Major
   - [ ] Minor
   - [ ] Trivial
   
   
   ### How Has This Been Tested?
   Partial execution of the component with a test vector.
   Tracing the values and compared with spreadsheet.
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) 
document -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to