projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b0f50b
)
only use half the max size
author
Joey Hess
<joey@kodama.kitenet.net>
Thu, 25 Oct 2007 04:28:40 +0000
(
00:28
-0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Thu, 25 Oct 2007 04:28:40 +0000
(
00:28
-0400)
IkiWiki/Plugin/postsparkline.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/postsparkline.pm
b/IkiWiki/Plugin/postsparkline.pm
index dc996ae32ff3f877f7f0963bc6aa2f29893937c0..9e885741e073bc4ded2e3947366ea6265d8249db 100644
(file)
--- 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})" : "";