如何使cpu百分比指标具有固定宽度或在100以下时插入0。
我的CPU配置
commands = [
Run Cpu [
"--template", "cpu: <total>%",
"-L", "3",
"-H", "50",
"--normal", "green",
"--high", "red"] 10
]
答案 0 :(得分:1)
您可以使用选项-m
设置最小宽度
commands = [
Run Cpu [
"--template", "cpu: <total>%",
"-L", "3",
"-H", "50",
"-m", "3",
"--normal", "green",
"--high", "red"] 10
]