Conky: Fix width calculations for high core count CPU graphs
This commit is contained in:
		@@ -180,7 +180,7 @@ step_text() {
 | 
				
			|||||||
		else
 | 
							else
 | 
				
			||||||
			gpl=8
 | 
								gpl=8
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
		local width=$(( 400 / gpl ))
 | 
							local width=$(( ( 400 - ( gpl - 1 ) * 3 ) / gpl ))
 | 
				
			||||||
		log "Generating $gpl graphs per row of CPU core stats" 1
 | 
							log "Generating $gpl graphs per row of CPU core stats" 1
 | 
				
			||||||
		log "Graphs will be $width wide" 2
 | 
							log "Graphs will be $width wide" 2
 | 
				
			||||||
		local cpuinfo
 | 
							local cpuinfo
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user