[LON-CAPA-cvs] cvs: loncom /interface/statistics lonproblemstatistics.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Wed, 26 Mar 2003 21:55:18 -0000
matthew Wed Mar 26 16:55:18 2003 EDT
Modified files:
/loncom/interface/statistics lonproblemstatistics.pm
Log:
Fix bug - graph.png does not plot values of 'nan' very well, so pass 0 instead.
Index: loncom/interface/statistics/lonproblemstatistics.pm
diff -u loncom/interface/statistics/lonproblemstatistics.pm:1.45 loncom/interface/statistics/lonproblemstatistics.pm:1.46
--- loncom/interface/statistics/lonproblemstatistics.pm:1.45 Wed Mar 26 16:47:47 2003
+++ loncom/interface/statistics/lonproblemstatistics.pm Wed Mar 26 16:55:18 2003
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonproblemstatistics.pm,v 1.45 2003/03/26 21:47:47 matthew Exp $
+# $Id: lonproblemstatistics.pm,v 1.46 2003/03/26 21:55:18 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -658,6 +658,7 @@
}
push (@Results,$wrongpercent);
my $data = $Results[$fieldindex];
+ $data = 0 if ($data eq 'nan');
$Max = $data if ($Max<$data);
push (@Data,$data);
}