mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Restored Execution time for now
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -16,6 +16,8 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div>Execution Time: <span id="Execution Time"></span></div>
|
||||
<div>Remaining Time: <span class="var_sync_model_tqdm_rem_time"></span></div>
|
||||
<div class="used_token_length"></div>
|
||||
<hr/>
|
||||
<div class="tabrow nomenu_icon">
|
||||
|
Reference in New Issue
Block a user