From fb8911eb055fbd09966ac20988f633e023edf7ab Mon Sep 17 00:00:00 2001 From: ebolam Date: Tue, 23 Aug 2022 21:09:30 -0400 Subject: [PATCH] Restored Execution time for now --- static/koboldai.js | 11 +++-------- templates/story flyout.html | 2 ++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/static/koboldai.js b/static/koboldai.js index 96f546ca..88d73f7a 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -438,10 +438,9 @@ function do_ai_busy(data) { favicon.start_swap() } else { runtime = Date.now() - ai_busy_start; - //if (document.getElementById("Execution Time")) { - // document.getElementById("Execution Time").textContent = Math.round(runtime/1000).toString().toHHMMSS(); - //} - document.getElementById("btnsubmit").title = "Execution Time: "+Math.round(runtime/1000).toString().toHHMMSS(); + if (document.getElementById("Execution Time")) { + document.getElementById("Execution Time").textContent = Math.round(runtime/1000).toString().toHHMMSS(); + } favicon.stop_swap() document.getElementById('btnsubmit').textContent = "Submit"; for (item of document.getElementsByClassName('statusbar_outer')) { @@ -537,10 +536,6 @@ function var_changed(data) { item.setAttribute(data.classname.replace(" ", "_")+"_"+data.name.replace(" ", "_"), fix_text(data.value)); } - //add execution time and remaining time - if ((data.classname == 'model') && (data.name == 'tqdm_rem_time')) { - document.getElementById('status_bar').title = "Remainging Time: " + data.value; - } } diff --git a/templates/story flyout.html b/templates/story flyout.html index 77ed7f83..c50e40ba 100644 --- a/templates/story flyout.html +++ b/templates/story flyout.html @@ -16,6 +16,8 @@ } } +
Execution Time:
+
Remaining Time: