Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/2.1' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DomGarguilo committed Oct 24, 2024
2 parents 23aa157 + 8829a22 commit e008f15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ $(document).ready(function () {
"columnDefs": [{
"targets": "duration",
"render": function (data, type, row) {
data = data / 1_000_000; // convert from nanos to millis
if (type === 'display') data = timeDuration(data);
return data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function levelFormat(level) {
/**
* Converts the time to short number and adds unit
*
* @param {number} time Time in microseconds
* @param {number} time Time in milliseconds
* @return {string} The time with units
*/
function timeDuration(time) {
Expand Down

0 comments on commit e008f15

Please sign in to comment.