minutes instead of seconds

This commit is contained in:
cubernetes 2023-04-14 10:04:54 +02:00
parent dc3ddfb925
commit 11c68e8155
1 changed files with 2 additions and 2 deletions

View File

@ -1626,7 +1626,7 @@
if (start === -1 || document.getElementById('start_stop_sim_btn').innerHTML === 'Start Simulation') {
document.getElementById("simstart").innerHTML = "0";
} else {
document.getElementById("simstart").innerHTML = end - start;
document.getElementById("simstart").innerHTML = to_min_s(end - start);
if (document.getElementById('start_stop_sim_btn').innerHTML === 'Start Simulation')
{
document.getElementById("simstart").setAttribute("data-start", "-1");
@ -1639,7 +1639,7 @@
if (start === -1 || document.getElementById('start_stop_sim_btn').innerHTML === 'Start Simulation') {
document.getElementById("attackstart").innerHTML = "0";
} else {
document.getElementById("attackstart").innerHTML = end - start;
document.getElementById("attackstart").innerHTML = to_min_s(end - start);
}
fetch('/api/logs')