diff --git a/o_manager.py b/o_manager.py
index f79706e..6ec9d89 100644
--- a/o_manager.py
+++ b/o_manager.py
@@ -102,7 +102,7 @@ class OManager:
for line in io_stat:
time, value_down, value_up = line.split(",")
time = datetime.utcfromtimestamp(float(time))
- value = float(value_down+value_up)
+ value = float(value_down)+float(value_up)
if first_line:
first_line = False
else:
diff --git a/tabler/index.html b/tabler/index.html
index 3bd67c5..f876afd 100644
--- a/tabler/index.html
+++ b/tabler/index.html
@@ -466,7 +466,7 @@
Alive |
`))
- data.instances.forEach((instace, index) => {
+ data.instances.forEach((instance, index) => {
var tr = `
|
${instance.name}
@@ -477,17 +477,19 @@
|
`
- });
- ovpn_table.append(tr);
- $().peity && $(`#sparkline-${index}`).text(instance.ping_rate.join(", ")).peity("line", {
- width: 64,
- height: 40,
- stroke: "#206bc4",
- strokeWidth: 2,
- fill: ["#d2e1f3"],
- padding: .2,
+ ovpn_table.append(tr);
+ $().peity && $(`#sparkline-${index}`).text(instance.ping_rate.join(", ")).peity("line", {
+ width: 64,
+ height: 40,
+ stroke: "#206bc4",
+ strokeWidth: 2,
+ fill: ["#d2e1f3"],
+ padding: .2,
+ });
});
+
+
});
}
update_stat();