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:
parent
a4ed963409
commit
4740b10132
@ -108,9 +108,9 @@
|
|||||||
<div class="metric">
|
<div class="metric">
|
||||||
<span class="value">
|
<span class="value">
|
||||||
{% if key == 'time' %}
|
{% 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' %}
|
{% elseif key == 'hit_read_ratio' %}
|
||||||
{{ value.value ?? 0 }} <span class="unit">%</span>
|
{{ value ?? 0 }} <span class="unit">%</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ value }}
|
{{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user