]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
only use half the max size
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 25 Oct 2007 04:28:40 +0000 (00:28 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 25 Oct 2007 04:28:40 +0000 (00:28 -0400)
IkiWiki/Plugin/postsparkline.pm

index dc996ae32ff3f877f7f0963bc6aa2f29893937c0..9e885741e073bc4ded2e3947366ea6265d8249db 100644 (file)
@@ -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})" : "";