Return-Path: X-Original-To: apmail-aurora-issues-archive@minotaur.apache.org Delivered-To: apmail-aurora-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3B5911341 for ; Fri, 22 Aug 2014 19:44:36 +0000 (UTC) Received: (qmail 52557 invoked by uid 500); 22 Aug 2014 19:44:36 -0000 Delivered-To: apmail-aurora-issues-archive@aurora.apache.org Received: (qmail 52521 invoked by uid 500); 22 Aug 2014 19:44:36 -0000 Mailing-List: contact issues-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list issues@aurora.incubator.apache.org Received: (qmail 52512 invoked by uid 99); 22 Aug 2014 19:44:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2014 19:44:36 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 22 Aug 2014 19:44:14 +0000 Received: (qmail 51283 invoked by uid 99); 22 Aug 2014 19:44:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2014 19:44:11 +0000 Date: Fri, 22 Aug 2014 19:44:11 +0000 (UTC) From: "Erik van Roode (JIRA)" To: issues@aurora.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AURORA-660) Resource consumption display format for floats does not restrict #decimals MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AURORA-660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erik van Roode updated AURORA-660: ---------------------------------- Attachment: resource display.png Screenshot of role resource use display > Resource consumption display format for floats does not restrict #decimals > -------------------------------------------------------------------------- > > Key: AURORA-660 > URL: https://issues.apache.org/jira/browse/AURORA-660 > Project: Aurora > Issue Type: Story > Components: Scheduler > Reporter: Erik van Roode > Priority: Minor > Attachments: resource display.png > > > Resource consumption displays CPU as a float without #decimal contraints, RAM and Disk with 2 decimals. > running 8 instances with Resources(cpu = 0.09, disk = 32*MB, ram = 64*MB) > Not sure screenshot is going to work, some copy&base for relevant bits: > viewing /scheduler/role > Resource Production Consumption Quota Non-Production Consumption > CPU 0.7199999999999999 cores 1 cores 0.7199999999999999 cores > RAM 512.00 MiB 1.00 GiB 512.00 MiB > Disk 256.00 MiB 1.00 GiB 256.00 MiB > Formatting is done in src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js > The scaleMb function doesn't seem to ever create numbers that aren't effectively integer (integer division truncates to int?) > IMO toCores is missing a ".toFixed(N).toString()" afetr the "return count". > I'd argue RAM/Disk could just use zero decimals, and CPU only a few decimals, 2 or 3 perhaps? -- This message was sent by Atlassian JIRA (v6.2#6252)