diff options
author | gebele <gebele@in-silico.ch> | 2019-07-10 09:03:23 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-07-10 09:03:23 +0000 |
commit | 60aa817bdb08e4bcb769f4bee2834c23de9cd346 (patch) | |
tree | 4818f107acb2932c849899d0adadcb1c9c6fa7c4 /views/batch.haml | |
parent | 2b48d7a57b340b2ffb344774529ed84430883035 (diff) |
adjust approx task time
Diffstat (limited to 'views/batch.haml')
-rw-r--r-- | views/batch.haml | 4 |
1 files 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)); |