File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,12 @@ <h3>Commits</h3>
81
81
let html = "" ;
82
82
if ( datum ) {
83
83
html += "<td>" ;
84
- let txt = datum . toLocaleString ( 'en-US' , { minimumFractionDigits : 2 , maximumFractionDigits : 2 } ) ;
84
+ let txt = "" ;
85
+ if ( Number . isInteger ( datum ) ) {
86
+ txt = datum + "" ;
87
+ } else {
88
+ txt = datum . toLocaleString ( 'en-US' , { minimumFractionDigits : 3 , maximumFractionDigits : 3 } ) ;
89
+ }
85
90
if ( selfProfileAvailable ) {
86
91
html += `<a href="/detailed-query.html?commit=${ sha } &benchmark=${ bench } &run_name=${ run } ">${ txt } </a>` ;
87
92
} else {
@@ -103,7 +108,7 @@ <h3>Commits</h3>
103
108
}
104
109
105
110
function add_percent ( pct , dodgy , dodgy_marker ) {
106
- if ( pct && pct != Infinity && pct != - Infinity ) {
111
+ if ( pct != null && pct != Infinity && pct != - Infinity ) {
107
112
let klass = "" ;
108
113
if ( pct > 1 ) {
109
114
klass = 'span class="positive"' ;
You can’t perform that action at this time.
0 commit comments