Successfully migrate to SQlite

This commit is contained in:
Donald Cheng Hong Zou
2022-01-02 14:44:27 -05:00
parent 06dd641274
commit 4f93d48ac6
4 changed files with 174 additions and 379 deletions

View File

@@ -387,10 +387,8 @@
response["peer_data"].forEach(function(peer){
let total_r = 0;
let total_s = 0;
for (let i = 0; i < peer["traffic"].length; i++){
total_r += peer["traffic"][i]["total_receive"];
total_s += peer["traffic"][i]["total_sent"];
}
total_r += peer["cumu_receive"];
total_s += peer["cumu_sent"];
let spliter = '<div class="w-100"></div>';
let peer_name =
'<div class="col-sm display" style="display: flex; align-items: center; margin-bottom: 0.2rem">' +