From 702caefda6d7bd5d0213086ba79249246c76fdf1 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Tue, 24 May 2011 14:26:28 +0000 Subject: [PATCH] fixed fence post bug in plot_lendist git-svn-id: http://biopieces.googlecode.com/svn/trunk@1426 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/plot_lendist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bp_bin/plot_lendist b/bp_bin/plot_lendist index 58f9145..6cb7090 100755 --- a/bp_bin/plot_lendist +++ b/bp_bin/plot_lendist @@ -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 ]; } -- 2.39.2