diff --git a/o_manager.py b/o_manager.py
index 1eb480d..b17ffab 100644
--- a/o_manager.py
+++ b/o_manager.py
@@ -106,7 +106,7 @@ class OManager:
# align time range to grid defined by monitoring interval
now = datetime.now()
for i in self.instances:
- lines = math.ceil(time_range*60/5)
+ lines = math.ceil(time_range*60/5)+1
io_stat = i["op"].get_io_stat(lines=lines)
first_line = True
prev_value = None
diff --git a/tabler/index.html b/tabler/index.html
index 236a44e..841c6cf 100644
--- a/tabler/index.html
+++ b/tabler/index.html
@@ -464,6 +464,9 @@
colors = Array.from(Array(100), () => "#" + random().toString(16).substr(-6))
var color = Chart.helpers.color;
+ $('body').tooltip({
+ selector: '[data-toggle="tooltip"]'
+ });
var update_stat = function () {
$.getJSON("/stat", function (data) {
// update top chart
@@ -483,8 +486,10 @@
})
traffic_chart.data.datasets = datasets;
traffic_chart.update();
+
// update table
var ovpn_table = $("#ovpn_table");
+ $('[data-toggle="tooltip"]').tooltip('hide');
ovpn_table.empty();
ovpn_table.append($(`
@@ -492,6 +497,7 @@
`))
@@ -503,7 +509,10 @@
Status
Weight
Alive
+ Ping
Actions