PyukiWiki CVS Commit
pyuki****@lists*****
2012年 1月 30日 (月) 22:24:29 JST
Index: PyukiWiki-Devel/plugin/logs_viewer.inc.pl diff -u PyukiWiki-Devel/plugin/logs_viewer.inc.pl:1.100 PyukiWiki-Devel/plugin/logs_viewer.inc.pl:1.101 --- PyukiWiki-Devel/plugin/logs_viewer.inc.pl:1.100 Mon Jan 30 09:24:47 2012 +++ PyukiWiki-Devel/plugin/logs_viewer.inc.pl Mon Jan 30 22:24:29 2012 @@ -1,6 +1,6 @@ ###################################################################### # logs_viewer.inc.pl - This is PyukiWiki, yet another Wiki clone. -# $Id: logs_viewer.inc.pl,v 1.100 2012/01/30 00:24:47 papu Exp $ +# $Id: logs_viewer.inc.pl,v 1.101 2012/01/30 13:24:29 papu Exp $ # # "PyukiWiki" version 0.2.0-p1-preview3-p1 $$ # Author: Nanami http://nanakochi.daiba.cx/ @@ -268,7 +268,7 @@ <tr> <td class="style_td" align="right"@{[$maxcount eq 0 ? ' rowspan="2"' : '']}>@{[++$i]}</td> <td class="style_td" align="right"@{[$maxcount eq 0 ? ' rowspan="2"' : '']}>$h{$_}</td> -<td class="style_td" align="right"@{[$maxcount eq 0 ? ' rowspan="2"' : '']}>@{[sprintf("%.1f", $h{$_} / $total * 100)]}%</td> +<td class="style_td" align="right"@{[$maxcount eq 0 ? ' rowspan="2"' : '']}>@{[$total > 0 ? sprintf("%.1f", $h{$_} / $total * 100) : "-"]}%</td> <td class="style_td">$_</td>@{[$maxcount eq 0 ? '</tr><tr><td class="style_td" width="' . $maxwidth . '">' . &printgraph($h{$_}, $maxvalue, $total, $maxwidth) . '</td>' : '']} </tr> EOM