You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/08/10 07:50:26 UTC

[servicecomb-pack] 21/36: SCB-1411 Use toLocaleString() method returns a string with a language-sensitive representation of this number

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git

commit b2d071e9bab06a08fcca78fdb11cc3cfcc07e074
Author: Lei Zhang <co...@gmail.com>
AuthorDate: Fri Aug 9 11:23:18 2019 +0800

    SCB-1411 Use toLocaleString() method returns a string with a language-sensitive representation of this number
---
 alpha/alpha-ui/src/main/resources/static/js/alpha-dashboard.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alpha/alpha-ui/src/main/resources/static/js/alpha-dashboard.js b/alpha/alpha-ui/src/main/resources/static/js/alpha-dashboard.js
index ba63d90..04c7a9a 100644
--- a/alpha/alpha-ui/src/main/resources/static/js/alpha-dashboard.js
+++ b/alpha/alpha-ui/src/main/resources/static/js/alpha-dashboard.js
@@ -41,7 +41,7 @@ $(document).ready(function () {
             + '<div class="progress-bar" role="progressbar" style="cursor:pointer; width: '
             + (data[i].durationTime / data[0].durationTime) * 100
             + '%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">'
-            + data[i].durationTime + ' ms</div>\n'
+            + parseInt(data[i].durationTime).toLocaleString() + ' ms</div>\n'
             + '</div></a>')
       }
     },