drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [drill] branch master updated: DRILL-6467: Percentage usage of memory is reported as zero by the WebUI
Date Thu, 07 Jun 2018 04:30:12 GMT
This is an automated email from the ASF dual-hosted git repository.

sorabh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git


The following commit(s) were added to refs/heads/master by this push:
     new d348794  DRILL-6467: Percentage usage of memory is reported as zero by the WebUI
d348794 is described below

commit d348794986e918370e29e0f0646f3c97bda32730
Author: Kunal Khatua <kkhatua@users.noreply.github.com>
AuthorDate: Wed Jun 6 21:30:07 2018 -0700

    DRILL-6467: Percentage usage of memory is reported as zero by the WebUI
    
    The memory reported as a percentage is incorrectly reported as 0%, irrespective of the
actual usage.
    closes #1305
---
 exec/java-exec/src/main/resources/rest/index.ftl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/java-exec/src/main/resources/rest/index.ftl b/exec/java-exec/src/main/resources/rest/index.ftl
index 11d1dd2..61e942a 100644
--- a/exec/java-exec/src/main/resources/rest/index.ftl
+++ b/exec/java-exec/src/main/resources/rest/index.ftl
@@ -554,7 +554,7 @@
       function computeMemUsage(used, max) {
         let percent = 0;
         if ( max > 0) {
-          let percent = Math.round((100 * used / max), 2);
+          percent = Math.round((100 * used / max), 2);
         }
         let usage   =  bytesInGB(used, 2) + "GB (" + Math.max(0, percent) + "% of "+ bytesInGB(max,
2) +"GB)";
         return usage;

-- 
To stop receiving notification emails like this one, please contact
sorabh@apache.org.

Mime
View raw message