Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 39EB7200CE7 for ; Thu, 3 Aug 2017 00:47:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 380E116A78C; Wed, 2 Aug 2017 22:47:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7E79A16A78B for ; Thu, 3 Aug 2017 00:47:39 +0200 (CEST) Received: (qmail 90848 invoked by uid 500); 2 Aug 2017 22:47:38 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 90839 invoked by uid 99); 2 Aug 2017 22:47:38 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2017 22:47:38 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4E50F8118D; Wed, 2 Aug 2017 22:47:36 +0000 (UTC) Date: Wed, 02 Aug 2017 22:47:36 +0000 To: "commits@cloudstack.apache.org" Subject: [cloudstack] branch master updated: CLOUDSTACK-9925: Quota memory tariff value is for 1MB of RAM used per month (not hour) (#2119) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150171405663.2283.6313894444793149128@gitbox.apache.org> From: bhaisaab@apache.org Reply-To: "commits@cloudstack.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: cloudstack X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: e43a4b9a09eb330ab148a4913c36e1ca2738adc3 X-Git-Newrev: e0b6dcbe4a31ddb2f3c0dedbedab85a44e6f84c6 X-Git-Rev: e0b6dcbe4a31ddb2f3c0dedbedab85a44e6f84c6 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Wed, 02 Aug 2017 22:47:40 -0000 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 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 ['"commits@cloudstack.apache.org" '].