Conky: Fix width calculations for high core count CPU graphs

This commit is contained in:
Salt 2020-09-25 07:15:00 -05:00
parent 2fad4cbf3b
commit 1b4bb0ca33

View File

@ -180,7 +180,7 @@ step_text() {
else
gpl=8
fi
local width=$(( 400 / gpl ))
local width=$(( ( 400 - ( gpl - 1 ) * 3 ) / gpl ))
log "Generating $gpl graphs per row of CPU core stats" 1
log "Graphs will be $width wide" 2
local cpuinfo