1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-21 23:01:39 +01:00
This commit is contained in:
Donald Cheng Hong Zou 2022-01-19 09:08:27 -05:00
parent 120d3b9f54
commit 7139e230cf
4 changed files with 8 additions and 3 deletions

View File

@ -21,4 +21,5 @@ jobs:
pip install pylint
- name: Analysing the code with pylint
run: |
pylint `ls ../../src -R|grep .py$|xargs`
# pylint `ls ../../src -R|grep .py$|xargs`
ls

View File

@ -340,6 +340,7 @@
*/
function loadPeers(searchString){
startProgressBar();
let d1 = new Date();
$.ajax({
method: "GET",
url: `/get_config/${conf_name}?search=${encodeURIComponent(searchString)}`,
@ -354,6 +355,9 @@
$(".dot.dot-stopped").attr("title","Peer Disconnected").tooltip();
$("i[data-toggle='tooltip']").tooltip();
endProgressBar();
let d2 = new Date();
let seconds = (d2 - d1);
$("#peer_loading_time").html(`Peer Loading Time: ${seconds}ms`);
}).fail(function(){
noResponding();
});

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,6 @@
</div>
</div>
{% include "navbar.html" %}
<div class="container-fluid" id="right_body">
{% include "sidebar.html" %}
<div class="col-md-9 ml-sm-auto col-lg-10 px-md-4 mt-4 mb-4">
@ -120,6 +119,7 @@
</div>
</div>
<div class="row peer_list"></div>
<small id="peer_loading_time" class="text-muted"></small>
</main>
</div>
</div>