]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed fence post bug in plot_lendist
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 24 May 2011 14:26:28 +0000 (14:26 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 24 May 2011 14:26:28 +0000 (14:26 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1426 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/plot_lendist

index 58f9145fbcad051eb4ef9a19b4475ea9df4b5088..6cb7090635d07b63884e34246bfbe4126219c113 100755 (executable)
@@ -66,7 +66,7 @@ while ( $record = Maasha::Biopieces::get_record( $in ) )
 
 $max = Maasha::Calc::list_max( [ keys %data_hash ] );
 
-for ( $i = 0; $i < $max; $i++ ) {
+for ( $i = 0; $i <= $max; $i++ ) {
     push @data_list, [ $i, $data_hash{ $i } || 0 ];
 }