1
0

Updated ExtendedGitGraph version

This commit is contained in:
2014-12-29 23:19:40 +01:00
parent 315f37c826
commit 7a7437e6d3
3 changed files with 371 additions and 282 deletions

View File

@@ -49,7 +49,7 @@ $monthlist = array_fill(0, 12, [0, 0]);
}
$c_count = $ymap[$date->format('Y-m-d')];
$color_idx = ceil(pow($c_count/$ymapmax, $exponent) * (count($COLORS)-1));
$color_idx = min((count($COLORS)-1), ceil(pow($c_count/$ymapmax, $exponent) * (count($COLORS)-1)));
$color = $COLORS[$color_idx];
$wday = ($date->format('N') - 1);