summaryrefslogtreecommitdiff
path: root/pages/debug.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-11 23:47:49 +0100
committerMinteck <contact@minteck.org>2022-11-11 23:47:49 +0100
commit209356b8ade1920b50d1d3a1a5e121c6623d167b (patch)
tree5301396987d1510f715a0b1c24754873af19e1dc /pages/debug.inc
parent2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 (diff)
downloadpluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.gz
pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.bz2
pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.zip
Update
Diffstat (limited to 'pages/debug.inc')
-rw-r--r--pages/debug.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/debug.inc b/pages/debug.inc
index 77001d0..e316a6f 100644
--- a/pages/debug.inc
+++ b/pages/debug.inc
@@ -76,7 +76,7 @@ function itemToName(string $item): string {
<li><b>Longest operation:</b> <?= itemToName(array_search(max(array_values($data["times"])), $data["times"])) ?? "-" ?> (<?= round(max(array_values($data["times"])) * 1000) ?> ms, <?= round((max(array_values($data["times"])) / $data["duration"]) * 100, 2) ?>%)</li>
</ul>
- <h4>Processing times</h4>
+ <h4 id="times">Processing times</h4>
<div>
<?php foreach ($data["times"] as $item => $time): ?><span class="element tooltip-nohelp" title="<b><?= itemToName($item) ?></b><br>(<?= round($time * 1000) ?> ms)" data-bs-toggle="tooltip" data-bs-html="true" style="opacity:.75;display:inline-block;background:#<?= substr(md5($item), 0, 6) ?>;height:8px;margin:4px 0;width:<?= ($time / $data["duration"]) * 100 ?>%"></span><?php endforeach; ?>
</div>
@@ -86,7 +86,7 @@ function itemToName(string $item): string {
<?php endforeach; ?>
</ul>
- <h4>Reported failures</h4>
+ <h4 id="failures">Reported failures</h4>
<?php if (count($data["restored"]) < 1): ?>
<p><i>The data updater has not reported any update failure in the last run.</i></p>
<?php else: ?>