[LON-CAPA-cvs] cvs: loncom /interface/statistics lonproblemstatistics.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Wed, 27 Oct 2004 18:17:44 -0000
matthew Wed Oct 27 14:17:44 2004 EDT
Modified files:
/loncom/interface/statistics lonproblemstatistics.pm
Log:
Added tries_per_correct
Index: loncom/interface/statistics/lonproblemstatistics.pm
diff -u loncom/interface/statistics/lonproblemstatistics.pm:1.94 loncom/interface/statistics/lonproblemstatistics.pm:1.95
--- loncom/interface/statistics/lonproblemstatistics.pm:1.94 Wed Oct 6 11:37:59 2004
+++ loncom/interface/statistics/lonproblemstatistics.pm Wed Oct 27 14:17:43 2004
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonproblemstatistics.pm,v 1.94 2004/10/06 15:37:59 matthew Exp $
+# $Id: lonproblemstatistics.pm,v 1.95 2004/10/27 18:17:43 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -231,6 +231,17 @@
selectable => 'yes',
defaultselected => 'yes',
},
+ { name => 'tries_per_correct',
+ title => 'tries/correct',
+ align => 'right',
+ color => '#FFDDDD',
+ format => '%4.1f',
+ sortable => 'yes',
+ graphable => 'yes',
+ long_title => 'Tries per Correct Answer',
+ selectable => 'yes',
+ defaultselected => 'yes',
+ },
{ name => 'num_wrong',
title => '#Wrng',
align => 'right',
@@ -1564,6 +1575,9 @@
&Apache::lonnet::put('nohist_resevaldata',\%storestats,$dom,$user);
}
#
+ $data->{'tries_per_correct'} = $data->{'tries'} /
+ ($data->{'num_solved'}+0.1);
+ #
# Get the due date for research purposes (commented out most of the time)
# $data->{'duedate'} =
# &Apache::lonnet::EXT('resource.'.$part.'.duedate',$symb);