Skip to content

Commit 9528cf9

Browse files
committed
Presets: fix percentage number printing in examples/20 [ci skip]
1 parent 66deb43 commit 9528cf9

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

presets/examples/20.jsonc

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"separator": "",
1111
"percent": {
12-
"type": 6
12+
"type": ["bar", "hide-others"]
1313
},
1414
"bar": {
1515
"borderLeft": "",
@@ -70,7 +70,7 @@
7070
"type": "localip",
7171
"key": "│ MAC ADDR │{$1}",
7272
"format": "{mac} ({ifname})",
73-
"showIPv4": false,
73+
"showIpv4": false,
7474
"showMac": true
7575
},
7676
{
@@ -120,12 +120,18 @@
120120
{
121121
"type": "memory",
122122
"key": "│ MEMORY │{$1}",
123-
"format": "{used} / {total} [{percentage}]"
123+
"format": "{used} / {total} [{percentage}]",
124+
"percent": {
125+
"type": ["num"]
126+
}
124127
},
125128
{
126129
"type": "memory",
127130
"key": "│ USAGE │{$1}",
128-
"format": ""
131+
"format": "",
132+
"percent": {
133+
"type": ["bar", "hide-others"]
134+
}
129135
},
130136
{
131137
"type": "custom",
@@ -135,12 +141,18 @@
135141
"type": "disk",
136142
"key": "│ VOLUME │{$1}",
137143
"format": "{size-used} / {size-total} [{size-percentage}]",
138-
"folders": "/"
144+
"folders": "/",
145+
"percent": {
146+
"type": ["num"]
147+
}
139148
},
140149
{
141150
"type": "disk",
142151
"key": "│ DISK USAGE │{$1}",
143-
"format": ""
152+
"format": "",
153+
"percent": {
154+
"type": ["bar", "hide-others"]
155+
}
144156
},
145157
{
146158
"type": "custom",

0 commit comments

Comments
 (0)