From 9528cf96f0303feab6fecf5c9ba9122cacba8c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 22 Jan 2025 09:01:02 +0800 Subject: [PATCH] Presets: fix percentage number printing in examples/20 [ci skip] --- presets/examples/20.jsonc | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/presets/examples/20.jsonc b/presets/examples/20.jsonc index 830daff3a..4bdbe5faf 100644 --- a/presets/examples/20.jsonc +++ b/presets/examples/20.jsonc @@ -9,7 +9,7 @@ }, "separator": "│ ", "percent": { - "type": 6 + "type": ["bar", "hide-others"] }, "bar": { "borderLeft": "", @@ -70,7 +70,7 @@ "type": "localip", "key": "│ MAC ADDR │{$1}", "format": "{mac} ({ifname})", - "showIPv4": false, + "showIpv4": false, "showMac": true }, { @@ -120,12 +120,18 @@ { "type": "memory", "key": "│ MEMORY │{$1}", - "format": "{used} / {total} [{percentage}]" + "format": "{used} / {total} [{percentage}]", + "percent": { + "type": ["num"] + } }, { "type": "memory", "key": "│ USAGE │{$1}", - "format": "" + "format": "", + "percent": { + "type": ["bar", "hide-others"] + } }, { "type": "custom", @@ -135,12 +141,18 @@ "type": "disk", "key": "│ VOLUME │{$1}", "format": "{size-used} / {size-total} [{size-percentage}]", - "folders": "/" + "folders": "/", + "percent": { + "type": ["num"] + } }, { "type": "disk", "key": "│ DISK USAGE │{$1}", - "format": "" + "format": "", + "percent": { + "type": ["bar", "hide-others"] + } }, { "type": "custom",