Fix coverage filename→name, fix TasksProxy auto-save for multi-worker
This commit is contained in:
@@ -2198,9 +2198,9 @@ function renderCoverage() {
|
||||
const x1 = ml + ((seg.startDate.getTime() - tMin) / tRange) * pw;
|
||||
const w = Math.max(2, ((seg.duration_sec || 0) / (tRange / 1000)) * pw);
|
||||
const color = lineColorMap[seg.line] || '#666';
|
||||
const escapedFn = seg.filename.replace(/'/g, "\\'");
|
||||
const escapedFn = (seg.filename||seg.name).replace(/'/g, "\\'");
|
||||
svg += `<rect x="${x1}" y="${y + 1}" width="${w}" height="${rowH - 2}" fill="${color}" rx="2" opacity="0.8" style="cursor:pointer" onclick="coverageClickFile('${escapedFn}')">`;
|
||||
svg += `<title>${seg.filename}\nBoard: ${seg.board_id || '?'}\nLine: ${seg.line || '?'} Point: ${seg.point || '?'}\nDuration: ${((seg.duration_sec || 0) / 3600).toFixed(1)}h\nStart: ${seg.date_str}</title>`;
|
||||
svg += `<title>${(seg.filename||seg.name)}\nBoard: ${seg.board_id || '?'}\nLine: ${seg.line || '?'} Point: ${seg.point || '?'}\nDuration: ${((seg.duration_sec || 0) / 3600).toFixed(1)}h\nStart: ${seg.date_str}</title>`;
|
||||
svg += `</rect>`;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user