]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/postsparkline.pm
web commit by XTaran: Changed case of repo link since hgweb seems to be pickier about...
[git.ikiwiki.info.git] / 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})" : "";