mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Fix typo and clarify the expired cache entries count
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -162,7 +162,7 @@ function updateMetrics() {
|
||||
// Set metrics
|
||||
setMetrics(metrics, "sysinfo-");
|
||||
|
||||
$("#cache-utilization").text(((100 * cacheEntries) / cacheSize).toFixed(1) + "%");
|
||||
$("#cache-utilization").text(cacheEntries.toLocaleString() + " (" + ((100 * cacheEntries) / cacheSize).toFixed(1) + "%)");
|
||||
|
||||
$("div[id^='sysinfo-metrics-overlay']").hide();
|
||||
// Update every 10 seconds
|
||||
|
||||
@@ -176,13 +176,13 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<span title="Percentage of the allocated cache that is currently in use. If this value is very low, it is advisable to reduce the DNS cache size to optimize performance">DNS cache utilization:</span>
|
||||
<span title="Share of the allocated cache that is currently in use (this includes stale/expired entries). If the percentage value is very low, it is advisable to reduce the DNS cache size to optimize performance">Active cache records:</span>
|
||||
</th>
|
||||
<td id="cache-utilization"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<span title="Number of cache insertions, this number will grow continuously as expiring records naturally make space for new records">DNS cache insertions:</span>
|
||||
<span title="Number of cache insertions, this number will grow continuously as expiring records naturally make space for new records">Total cache insertions:</span>
|
||||
</th>
|
||||
<td id="sysinfo-dns-cache-inserted"> </td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user