diff --git a/plugins/host_agent/templates/host_detail.html b/plugins/host_agent/templates/host_detail.html index 9b18f86..14c63f3 100644 --- a/plugins/host_agent/templates/host_detail.html +++ b/plugins/host_agent/templates/host_detail.html @@ -12,6 +12,8 @@ {% endmacro %} {% macro fmt_bytes(v) %} {%- if v is none -%}— +{%- elif v >= 1125899906842624 -%}{{ "%.1f"|format(v / 1125899906842624) }} PB +{%- elif v >= 1099511627776 -%}{{ "%.1f"|format(v / 1099511627776) }} TB {%- elif v >= 1073741824 -%}{{ "%.1f"|format(v / 1073741824) }} GB {%- elif v >= 1048576 -%}{{ "%.0f"|format(v / 1048576) }} MB {%- else -%}{{ "%.0f"|format(v / 1024) }} KB @@ -148,16 +150,16 @@ {% endif %} -{# ── Interfaces / disks / sensors current detail ──────────────────────────── #} -{% if nets or disks_io or temps %} -