Permalink
Browse files

Bugfix: modify_rra incorrectly reduced RRA size

  • Loading branch information...
1 parent 71b7d03 commit f6c47d6d1ae8144669f6a04776f7987480ce68fc @ssinyagin committed Jun 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/RRD/Tweak.pm
View
@@ -1319,7 +1319,7 @@ sub modify_rra {
if( $arg->{'rows'} < $rra_len ) {
# shrink the RRA: remove the array head
- splice(@{$rra_data}, 0, ($arg->{'rows'} - $rra_len));
+ splice(@{$rra_data}, 0, ($rra_len - $arg->{'rows'}));
}
elsif( $arg->{'rows'} > $rra_len ) {

0 comments on commit f6c47d6

Please sign in to comment.