Limit decimal places length of response time in ms
This commit is contained in:
@@ -12,7 +12,7 @@ show_refresh=False, show_link=False, show_edit_form=True, show_client=True, show
|
||||
<script>
|
||||
function formatTime(milliseconds) {
|
||||
if (milliseconds < 1000) {
|
||||
return `${milliseconds} ms`; // Display milliseconds directly if less than 1 second
|
||||
return `${milliseconds.toFixed(2)} ms`; // Display milliseconds directly if less than 1 second
|
||||
}
|
||||
|
||||
const seconds = milliseconds / 1000;
|
||||
|
||||
Reference in New Issue
Block a user