From: Joey Hess Date: Thu, 25 Oct 2007 04:28:40 +0000 (-0400) Subject: only use half the max size X-Git-Tag: 2.11~17 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/30bfe76eac0b4ee01e593a27a9fd4578d58124f6 only use half the max size --- diff --git a/IkiWiki/Plugin/postsparkline.pm b/IkiWiki/Plugin/postsparkline.pm index dc996ae32..9e885741e 100644 --- a/IkiWiki/Plugin/postsparkline.pm +++ b/IkiWiki/Plugin/postsparkline.pm @@ -58,7 +58,7 @@ sub preprocess (@) { #{{{ if (! @data) { # generate an empty graph - push @data, 0 foreach 1..$params{max}; + push @data, 0 foreach 1..($params{max} / 2); } my $color=exists $params{color} ? "($params{color})" : "";