... | ... |
@@ -88,7 +88,9 @@ |
88 | 88 |
% my $blame_commit = $line->{commit}; |
89 | 89 |
% my $summary = $line->{summary}; |
90 | 90 |
% my $summary_short= length $summary > 28 ? substr($summary, 0, 28) . '...' : $summary; |
91 |
- % my $time_rate = ($blame_max_author_time - $line->{author_time}) / ($blame_max_author_time - $blame_min_author_time); |
|
91 |
+ % my $time_rate = $blame_max_author_time == $blame_min_author_time |
|
92 |
+ % ? 1 |
|
93 |
+ % : ($blame_max_author_time - $line->{author_time}) / ($blame_max_author_time - $blame_min_author_time); |
|
92 | 94 |
% my $color_number = int($time_rate * 10); |
93 | 95 |
% $color_number = 9 if $color_number == 10; |
94 | 96 |
% my $hot_color = $colors->[$color_number]; |