From 814d23b5f1e0942771d22a0d35eab6c8c9baae76 Mon Sep 17 00:00:00 2001 From: cburroughs Date: Mon, 30 Sep 2013 14:15:57 -0400 Subject: [PATCH] Apply hydrogenesis work from #206 and make a pretty pull request out of it --- stacked.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stacked.php b/stacked.php index e69137fc..c396c326 100644 --- a/stacked.php +++ b/stacked.php @@ -96,7 +96,8 @@ $min_index = min(array_keys($hosts)); foreach($hosts as $index => $host) { - $cx = $index/(1+count($hosts)); + $cx = $i/(1+count($hosts)); + $i++; $color = get_col($cx); if ($conf['strip_domainname']) $host = strip_domainname($host);