Replace standard tooltip with time display
This commit is contained in:
parent
3d95eeb561
commit
015084211a
|
|
@ -531,7 +531,7 @@ new Chart(ctx{{ metricName|replace({'-': '_', '.': '_'}) }}, {
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
var lines = [];
|
var lines = [];
|
||||||
lines.push('{{ metricName|replace({'_': ' ', 'load': 'загрузка', 'used': 'использование'})|title }}: ' + data{{ metricName }}[dataIndex]);
|
lines.push('Время: ' + time);
|
||||||
{% if metricName == 'cpu_load' %}
|
{% if metricName == 'cpu_load' %}
|
||||||
// Показываем только top_cpu
|
// Показываем только top_cpu
|
||||||
if (data.top_cpu && data.top_cpu.length > 0) {
|
if (data.top_cpu && data.top_cpu.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue