From 60aa817bdb08e4bcb769f4bee2834c23de9cd346 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 10 Jul 2019 09:03:23 +0000 Subject: adjust approx task time --- views/batch.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/batch.haml b/views/batch.haml index 334d22e..6ac2a1b 100644 --- a/views/batch.haml +++ b/views/batch.haml @@ -27,9 +27,9 @@ var est = document.getElementById("est_"+id); var now = new Date().getTime(); if ( type == "true" ){ - var approximate = new Date(tasktime*1000 + #{@compounds_size*1000}); + var approximate = new Date(tasktime*1000 + #{@compounds_size*100}*(id+1)); } else { - var approximate = new Date(tasktime*1000 + #{@compounds_size*100}); + var approximate = new Date(tasktime*1000 + #{@compounds_size*1000}*(id+1)); } var remain = approximate - now; var minutes = Math.floor((remain % (1000 * 60 * 60)) / (1000 * 60)); -- cgit v1.2.3