Replace standard tooltip with time display

This commit is contained in:
mirivlad 2026-02-14 18:23:46 +00:00
parent 3d95eeb561
commit 015084211a
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ new Chart(ctx{{ metricName|replace({'-': '_', '.': '_'}) }}, {
.then(response => response.json())
.then(data => {
var lines = [];
lines.push('{{ metricName|replace({'_': ' ', 'load': 'загрузка', 'used': 'использование'})|title }}: ' + data{{ metricName }}[dataIndex]);
lines.push('Время: ' + time);
{% if metricName == 'cpu_load' %}
// Показываем только top_cpu
if (data.top_cpu && data.top_cpu.length > 0) {