This is an automated email from the ASF dual-hosted git repository.
bhaisaab pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new e0b6dcb CLOUDSTACK-9925: Quota memory tariff value is for 1MB of RAM
used per month (not hour) (#2119)
e0b6dcb is described below
commit e0b6dcbe4a31ddb2f3c0dedbedab85a44e6f84c6
Author: Gabriel Beims Bräscher <[email protected]>
AuthorDate: Wed Aug 2 19:47:33 2017 -0300
CLOUDSTACK-9925: Quota memory tariff value is for 1MB of RAM used per month
(not hour) (#2119)
The quota memory tariff description in the CloudStack UI is wrong when
defines that the value is for "using 1MB or RAM for 1 hour". The quota currency
values reflect the value of a resource used per month, not an hour.
Quota divides the tariff value by the number of hours a month has (30 days
- 720 hours); then it calculates the credits used by a client based on the
amount of resources used per hour. The memory tariff description in the
interface is wrong and can guide users to configure values for an hour.
---
.../quota/src/org/apache/cloudstack/quota/constant/QuotaTypes.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/quota/src/org/apache/cloudstack/quota/constant/QuotaTypes.java
b/framework/quota/src/org/apache/cloudstack/quota/constant/QuotaTypes.java
index 36910f4..6e1432d 100644
--- a/framework/quota/src/org/apache/cloudstack/quota/constant/QuotaTypes.java
+++ b/framework/quota/src/org/apache/cloudstack/quota/constant/QuotaTypes.java
@@ -57,7 +57,7 @@ public class QuotaTypes extends UsageTypes {
quotaTypeList.put(VM_SNAPSHOT, new QuotaTypes(VM_SNAPSHOT,
"VM_SNAPSHOT", "GB-Month", "VM Snapshot storage usage"));
quotaTypeList.put(CPU_CLOCK_RATE, new QuotaTypes(CPU_CLOCK_RATE,
"CPU_CLOCK_RATE", "Compute-Month", "Quota tariff for using 1 CPU of clock rate
100MHz"));
quotaTypeList.put(CPU_NUMBER, new QuotaTypes(CPU_NUMBER, "CPU_NUMBER",
"Compute-Month", "Quota tariff for running VM that has 1vCPU"));
- quotaTypeList.put(MEMORY, new QuotaTypes(MEMORY, "MEMORY",
"Compute-Month", "Quota tariff for using 1MB or RAM for 1 hour"));
+ quotaTypeList.put(MEMORY, new QuotaTypes(MEMORY, "MEMORY",
"Compute-Month", "Quota tariff for using 1MB of RAM"));
quotaTypeMap = Collections.unmodifiableMap(quotaTypeList);
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].