v0.0.41: время на конкретный файл в колонке Статус (бэк считает, без общего LLM)
Deploy drhider / validate (push) Canceled after 0s
Deploy drhider / validate (push) Canceled after 0s
This commit is contained in:
@@ -484,8 +484,11 @@ async function uploadFiles() {
|
||||
activeES.addEventListener('done', function(e) {
|
||||
const d = JSON.parse(e.data);
|
||||
clearInterval(fileIntervals[d.idx]);
|
||||
const elapsed = ((performance.now() - (fileTimers[d.idx] || performance.now())) / 1000).toFixed(1);
|
||||
ss(d.idx, '<span style="color:#22c55e">✓ ' + elapsed + 'с</span>');
|
||||
// Время на КОНКРЕТНЫЙ файл приходит с бэка (extract_text + замена, без общего LLM)
|
||||
const sec = (typeof d.elapsed === 'number' && d.elapsed > 0)
|
||||
? d.elapsed.toFixed(1)
|
||||
: ((performance.now() - (fileTimers[d.idx] || performance.now())) / 1000).toFixed(1);
|
||||
ss(d.idx, '<span style="color:#22c55e">✓ ' + sec + 'с</span>');
|
||||
});
|
||||
activeES.addEventListener('complete', function(e) {
|
||||
activeES.close();
|
||||
|
||||
Reference in New Issue
Block a user