fix: update

This commit is contained in:
Fine 2023-06-12 21:23:52 +08:00
parent c67b24a39d
commit 2e951b4740

View File

@ -99,11 +99,13 @@ limitations under the License. -->
tooltip: {
overflowMethod: "cap",
template(item: EBPFTaskList | any) {
const types = ["PROCESS_CPU", "HTTP_ERROR_RATE"];
const data = item.data || {};
const end = data.taskStartTime ? visDate(data.taskStartTime + data.fixedTriggerDuration * 1000) : "";
let str = "";
for (const item of data.continuousProfilingCauses || []) {
str += `${item.type}: ${getURI(item.uri)}${item.uri.threshold}>=${item.uri.current}; `;
str += `${item.type}: ${getURI(item.uri)}${item.uri.threshold}${types.includes(item.type) ? "%" : ""}>=
${item.uri.current}${types.includes(item.type) ? "%" : ""}; `;
}
let tmp = `