root 1 month ago
parent
commit
533df02350
  1. 9
      LTEMvcApp/Views/Home/Logs.cshtml

9
LTEMvcApp/Views/Home/Logs.cshtml

@ -321,11 +321,12 @@
const seconds = Math.floor(remaining / 1000);
remaining %= 1000;
const strHours = String(hours).padStart(2, '0');
const strMinutes = String(minutes).padStart(2, '0');
const strSeconds = String(seconds).padStart(2, '0');
const strMs = String(remaining).padStart(3, '0');
return `${hours}:${strMinutes}:${strSeconds}.${strMs}`;
return `${strHours}:${strMinutes}:${strSeconds}.${strMs}`;
}
function getDisplayTimestamp(log) {
@ -333,9 +334,9 @@
let title = 'Timestamp from server.';
let note = '';
if (log && typeof log.timestamp === 'number') {
timestamp = formatDuration(log.timestamp);
title = `Duration from start: ${timestamp} (Raw: ${log.timestamp}ms)`;
if (log && typeof log.Timestamp === 'number') {
timestamp = formatDuration(log.Timestamp);
title = `Duration from start: ${timestamp} (Raw: ${log.Timestamp}ms)`;
} else {
timestamp = 'Invalid Time';
title = 'Timestamp from server was invalid or missing.';

Loading…
Cancel
Save