mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Tweak processing/render time
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -676,12 +676,6 @@ function addAdvancedInfo() {
|
||||
const endtime = parseFloat(advancedInfoSource.data("endtime"));
|
||||
const totaltime = 1e3 * (endtime - starttime);
|
||||
|
||||
// Hide advanced info if settings level is lower than 2
|
||||
if (settingsLevel < 2) {
|
||||
advancedInfoTarget.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
// Show advanced info
|
||||
advancedInfoTarget.empty();
|
||||
|
||||
|
||||
@@ -174,8 +174,6 @@ function eventsource(partial) {
|
||||
"using a more specific search term or increase N.<br>";
|
||||
}
|
||||
|
||||
result += "<br>Search took " + (1000 * data.took).toFixed(1) + " ms";
|
||||
|
||||
ta.append(result);
|
||||
})
|
||||
.fail(function (data) {
|
||||
|
||||
@@ -58,12 +58,6 @@ function importZIP() {
|
||||
$("#modal-import-success-message").html(text);
|
||||
}
|
||||
|
||||
if ("took" in data) {
|
||||
$("#modal-import-info-message").text(
|
||||
"Processing took " + data.took.toFixed(3) + " seconds."
|
||||
);
|
||||
}
|
||||
|
||||
$("#modal-import").modal("show");
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user