[ 
https://issues.apache.org/jira/browse/DRILL-6467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16504224#comment-16504224
 ] 

ASF GitHub Bot commented on DRILL-6467:
---------------------------------------

sohami closed pull request #1305: DRILL-6467: Percentage usage of memory is 
reported as zero by the WebUI
URL: https://github.com/apache/drill/pull/1305
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/exec/java-exec/src/main/resources/rest/index.ftl 
b/exec/java-exec/src/main/resources/rest/index.ftl
index 11d1dd21a0..61e942acb4 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;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Percentage usage of memory is reported as zero by the WebUI
> -----------------------------------------------------------
>
>                 Key: DRILL-6467
>                 URL: https://issues.apache.org/jira/browse/DRILL-6467
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Web Server
>    Affects Versions: 1.14.0
>            Reporter: Kunal Khatua
>            Assignee: Kunal Khatua
>            Priority: Trivial
>              Labels: ready-to-commit
>             Fix For: 1.14.0
>
>         Attachments: image-2018-06-05-10-28-08-067.png
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> The memory reported as a percentage is incorrectly reported as 0%, 
> irrespective of the actual usage.
> !image-2018-06-05-10-28-08-067.png!
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to