ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13387) Improve time for transforming data on the graphs
Date Mon, 12 Oct 2015 17:18:05 GMT

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

Hudson commented on AMBARI-13387:
---------------------------------

ABORTED: Integrated in Ambari-branch-2.1 #669 (See [https://builds.apache.org/job/Ambari-branch-2.1/669/])
AMBARI-13387. Improve time for transforming data on the graphs (onechiporenko: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7ba85ef214715304e2c7c714f654f6774d831121])
* ambari-web/test/views/common/chart/linear_time_test.js
* ambari-web/app/views/common/chart/linear_time.js


> 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)

Mime
View raw message