1

如何使 cpu 百分比指标具有固定宽度或在低于 100 时插入 0。

我的cpu配置

commands = [

        Run Cpu [
        "--template", "cpu: <total>%",
        "-L", "3",
        "-H", "50",
        "--normal", "green",
        "--high", "red"] 10
]
4

1 回答 1

1

You can use option -m to set minimum width

commands = [

        Run Cpu [
        "--template", "cpu: <total>%",
        "-L", "3",
        "-H", "50",
        "-m", "3",
        "--normal", "green",
        "--high", "red"] 10
]
于 2019-09-18T17:54:32.033 回答