Skip to content

Commit

Permalink
format numbers better
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 25, 2024
1 parent e854b98 commit b43fcf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom/benchmark/benchmarkUtils.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ component {
arrayAppend( row, numberFormat( q [ col ] ) & "%");
else if ( col eq "error" or col eq "snippet")
arrayAppend( row, htmleditformat( REReplace( q [ col ], "\n", " ", "ALL") ) );
else if ( left( col, 1 ) eq "_" ) {
if ( q [ col ] gt 1 )
arrayAppend( row, numberFormat( q [ col ] ) );
else
arrayAppend( row, decimalFormat( q [ col ] ) );
}
else
arrayAppend( row, q [ col ] );
}
Expand Down

0 comments on commit b43fcf7

Please sign in to comment.