{% extends 'base.html' %} {% block nav_dashboard %}active{% endblock %} {% block content %}
Server | Uptime | ogServer uptime | Connected clients | Number of images | Disk | Memory | Swap | |
---|---|---|---|---|---|---|---|---|
{{ server.name }} | {{ server.time_dict.boot }} | {{ server.time_dict.start }} | {{ server.clients | length }} | {{ server.images | length }} |
{% set disk = server.disk %}
{% set used = (((disk['total'] - disk['free']) / disk['total']) * 100)|int %}
|
{% set memory = server.stats.memory %}
{% set used = (((memory['size'] - memory['free']) / memory['size']) * 100)|int %}
|
{% set swap = server.stats.swap %}
{% if swap.size %}
{% set used = (((swap['size'] - swap['free']) / swap['size']) * 100)|int %}
|
{% else %}
No swap | {% endif %}
{{ time_dict['now'] }}
{{ time_dict['boot'] }}
{{ time_dict['start'] }}
{{ server.clients | length }}
{{ images | length }}