Conky cpubar填充错误

我在Debian KDE 9上工作时有一个用于监视CPU负载的简单conky cpubar,这里是相关部分:

${image ~/script/conky/static/img/cpu.png -p 0,280 -s 26x26}\
${goto 40}${font monospace:bold:size=15}${color1}CPU ${font   monospace:bold:size=10}(TOT: ${cpu cpu0}%) ${color0}${hr 5}${color white}

${font monospace:bold:size=11}\
${execi 99999 neofetch | grep 'CPU' | cut -f 2 -d ":" | sed 's/^[ \t]*//;s/[ \t]*$//' | sed 's/[\x01-\x1F\x7F]//g' | sed 's/\[0m//g' | sed 's/\[.*\]//'}\
[${execi 5 sensors | grep 'temp1' | cut -c16-22}]
${cpugraph cpu0 40,340 52ff00 6edd21}
CPU 1${goto 70}${cpu cpu1}%${goto 100}${cpubar 8,width_cpu_bar cpu1}
CPU 2${goto 70}${cpu cpu2}%${goto 100}${cpubar 8,width_cpu_bar cpu2}
CPU 3${goto 70}${cpu cpu3}%${goto 100}${cpubar 8,width_cpu_bar cpu3}
CPU 4${goto 70}${cpu cpu4}%${goto 100}${cpubar 8,width_cpu_bar cpu4}

这是结果:

在此输入图片描述

另一个示例:

在此输入图片描述

正如您所看到的,结果看起来不错,但填充cpubars不起作用,并且所有4个条的填充相同,在最后一个条中清楚地看到,我有100%的核心负载(CPU3)和他的条还没有完全填满。 我哪里错了?

点赞
用户5008284
用户5008284

CPU 数量位于 height,width 部分之前,即使用

${cpubar cpu1 8,width_cpu_bar}
2019-03-09 20:10:02