You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Oleg Nechiporenko (JIRA)" <ji...@apache.org> on 2015/10/12 15:15:05 UTC

[jira] [Updated] (AMBARI-13387) Improve time for transforming data on the graphs

     [ https://issues.apache.org/jira/browse/AMBARI-13387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Nechiporenko updated AMBARI-13387:
---------------------------------------
    Attachment: AMBARI-13387.patch

> Improve time for transforming data on the graphs
> ------------------------------------------------
>
>                 Key: AMBARI-13387
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13387
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.1.3
>            Reporter: Oleg Nechiporenko
>            Assignee: Oleg Nechiporenko
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-13387.patch
>
>
> {{ambari-web/app/views/common/chart/linear_time.js#transformData}} takes too much time because {{App.dateTimeWithTimeZone}} is executed in the loop. Better way - calculate timeDiff one time and use it:
> {code}
> var timeDiff = App.dateTimeWithTimeZone(seriesData[0][1] * 1000) / 1000 - seriesData[0][1];
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)