From 1b4bb0ca3319d299e4be29656b62b0bf5be2ed17 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Fri, 25 Sep 2020 07:15:00 -0500
Subject: [PATCH] Conky: Fix width calculations for high core count CPU graphs

---
 .config/conky/gen.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/conky/gen.sh b/.config/conky/gen.sh
index 339afa81..285400b9 100755
--- a/.config/conky/gen.sh
+++ b/.config/conky/gen.sh
@@ -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