[LON-CAPA-cvs] cvs: loncom /interface/statistics loncorrectproblemplot.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sun, 31 Dec 2006 22:43:48 -0000
albertel Sun Dec 31 17:43:48 2006 EDT
Modified files:
/loncom/interface/statistics loncorrectproblemplot.pm
Log:
- binning was failing when there was only 1 bin (side effect of BUG5119)
Index: loncom/interface/statistics/loncorrectproblemplot.pm
diff -u loncom/interface/statistics/loncorrectproblemplot.pm:1.21 loncom/interface/statistics/loncorrectproblemplot.pm:1.22
--- loncom/interface/statistics/loncorrectproblemplot.pm:1.21 Fri Aug 18 11:15:38 2006
+++ loncom/interface/statistics/loncorrectproblemplot.pm Sun Dec 31 17:43:48 2006
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: loncorrectproblemplot.pm,v 1.21 2006/08/18 15:15:38 raeburn Exp $
+# $Id: loncorrectproblemplot.pm,v 1.22 2006/12/31 22:43:48 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -248,7 +248,7 @@
my @Bins;
my $count=0;
my $idx=0;
- while ($idx < scalar(@$data) && ($endbin-$binend + $binsize)>0) {
+ while ($idx < scalar(@$data) && ($endbin-$binend + $binsize)>=0) {
my $dataset = $data->[$idx++];
my ($x,$y) = @{$dataset};
while ($x > ($binend-.001)) {