From e89b8b04d46f5a2a5250dfe5bba7f03e0344895b Mon Sep 17 00:00:00 2001
From: Pavel Loginov <buffoon2001@mail.ru>
Date: Thu, 6 Aug 2020 17:07:23 +0200
Subject: [PATCH] v4.4.1.0

Changelog: https://haproxy-wi.org/changelog.py#4_4_1
---
 app/templates/ajax/bin_bout.html | 53 ++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 app/templates/ajax/bin_bout.html

diff --git a/app/templates/ajax/bin_bout.html b/app/templates/ajax/bin_bout.html
new file mode 100644
index 00000000..dde6befb
--- /dev/null
+++ b/app/templates/ajax/bin_bout.html
@@ -0,0 +1,53 @@
+<div class="bin_bout" id="show_bin_bout">
+    <div class="server-name">
+        Bytes in
+        <span class="update-icon">
+            <a onclick="showBytes('{{ serv }}')" title="Refresh">
+                <span class="service-reload"></span>
+            </a>
+        </span>
+    </div>
+    <div class="bytes" id="bin">
+        {% set total = bin_bout.0|int / 1024 %}
+        {% set metric = 'Kb' %}
+        {% if total > 1000 %}
+            {% set total = total / 1024 %}
+            {% set metric = 'Mb' %}
+        {% endif %}
+        {% if total > 1000 %}
+            {% set total = total / 1024 %}
+            {% set metric = 'Gb' %}
+        {% endif %}
+        {{total|round(2)}} {{metric}}
+    </div>
+    <div class="server-name">
+        Bytes Out
+    </div>
+    <div class="bytes" id="bout">
+        {% set total = bin_bout.1|int / 1024 %}
+        {% set metric = 'Kb' %}
+        {% if total > 1000 %}
+            {% set total = total / 1024 %}
+            {% set metric = 'Mb' %}
+        {% endif %}
+        {% if total > 1000 %}
+            {% set total = total / 1024 %}
+            {% set metric = 'Gb' %}
+        {% endif %}
+        {{total|round(2)}} {{metric}}
+    </div>
+</div>
+<div id="sessions" class="bin_bout">
+    <div class="server-name">
+        Current ses
+    </div>
+    <div class="bytes" id="cur_sess">
+        {{bin_bout.2}}
+    </div>
+    <div class="server-name">
+        Total ses
+    </div>
+    <div class="bytes" id="total_sess">
+        {{bin_bout.3}}
+    </div>
+</div>
\ No newline at end of file