1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-06-30 22:50:14 +02: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 pip install pylint
- name: Analysing the code with pylint - name: Analysing the code with pylint
run: | 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){ function loadPeers(searchString){
startProgressBar(); startProgressBar();
let d1 = new Date();
$.ajax({ $.ajax({
method: "GET", method: "GET",
url: `/get_config/${conf_name}?search=${encodeURIComponent(searchString)}`, url: `/get_config/${conf_name}?search=${encodeURIComponent(searchString)}`,
@ -354,6 +355,9 @@
$(".dot.dot-stopped").attr("title","Peer Disconnected").tooltip(); $(".dot.dot-stopped").attr("title","Peer Disconnected").tooltip();
$("i[data-toggle='tooltip']").tooltip(); $("i[data-toggle='tooltip']").tooltip();
endProgressBar(); endProgressBar();
let d2 = new Date();
let seconds = (d2 - d1);
$("#peer_loading_time").html(`Peer Loading Time: ${seconds}ms`);
}).fail(function(){ }).fail(function(){
noResponding(); noResponding();
}); });

File diff suppressed because one or more lines are too long

View File

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