From 4b88cfa51ac0cbf302dfa93d6a93e91574558d76 Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Fri, 14 Oct 2022 03:43:33 -0400 Subject: [PATCH] More simple time check --- ui/media/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/media/main.js b/ui/media/main.js index e2513703..0d7757d7 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -18,7 +18,7 @@ const INPAINTING_EDITOR_SIZE = 450 const IMAGE_REGEX = new RegExp('data:image/[A-Za-z]+;base64') -let sessionId = new Date().getTime() +let sessionId = Date.now() let promptField = document.querySelector('#prompt') let promptsFromFileSelector = document.querySelector('#prompt_from_file') @@ -648,7 +648,7 @@ async function checkTasks() { let task = taskQueue.pop() currentTask = task - let time = new Date().getTime() + let time = Date.now() let successCount = 0 @@ -690,7 +690,7 @@ async function checkTasks() { task['stopTask'].innerHTML = ' Remove' task['taskStatusLabel'].style.display = 'none' - time = new Date().getTime() - time + time = Date.now() - time time /= 1000 if (successCount === task.batchCount) {