summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-10-25 00:28:40 -0400
committerJoey Hess <joey@kodama.kitenet.net>2007-10-25 00:28:40 -0400
commit30bfe76eac0b4ee01e593a27a9fd4578d58124f6 (patch)
tree9615c33cb3d15240d60e53cfa6141d142b918305 /IkiWiki
parent0b0f50b484fc972bfa3752393fba66d6ca6a9edd (diff)
only use half the max size
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/postsparkline.pm2
1 files changed, 1 insertions, 1 deletions
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})" : "";