Fixes a runtime error (Impossible to access an attribute ("value") on a double variable...) when accessing the cache panel (@see #35419)

This commit is contained in:
Damien Harper 2020-01-21 17:34:10 +01:00
parent a4ed963409
commit 4740b10132
1 changed files with 2 additions and 2 deletions

View File

@ -108,9 +108,9 @@
<div class="metric">
<span class="value">
{% if key == 'time' %}
{{ '%0.2f'|format(1000 * value.value) }} <span class="unit">ms</span>
{{ '%0.2f'|format(1000 * value) }} <span class="unit">ms</span>
{% elseif key == 'hit_read_ratio' %}
{{ value.value ?? 0 }} <span class="unit">%</span>
{{ value ?? 0 }} <span class="unit">%</span>
{% else %}
{{ value }}
{% endif %}