From eb1cfe2c70b988a4f737b21450fb5c63db4e33ee Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 11 May 2023 13:46:43 +0200 Subject: [PATCH] Color the "empty" cache space in a faint gray color Signed-off-by: DL6ER --- scripts/pi-hole/js/settings-system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/settings-system.js b/scripts/pi-hole/js/settings-system.js index 4107c21a..32cabec2 100644 --- a/scripts/pi-hole/js/settings-system.js +++ b/scripts/pi-hole/js/settings-system.js @@ -50,7 +50,7 @@ function updateCachePie(data) { querytypeids = []; Object.keys(data).forEach(function (item) { v.push((100 * data[item]) / sum); - c.push(THEME_COLORS[i % THEME_COLORS.length]); + c.push(item !== "empty" ? THEME_COLORS[i % THEME_COLORS.length] : "#80808040"); k.push(item); querytypeids.push(i + 1);