--- loncom/interface/statistics/lonproblemstatistics.pm 2004/10/06 15:37:59 1.94 +++ loncom/interface/statistics/lonproblemstatistics.pm 2004/10/27 18:17:43 1.95 @@ -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 @@ my @Fields = ( 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 @@ sub get_statistics { &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);