[Tux4kids-commits] r400 - tuxmath/trunk/src

tholy-guest at alioth.debian.org tholy-guest at alioth.debian.org
Mon Dec 31 14:10:59 UTC 2007


Author: tholy-guest
Date: 2007-12-31 14:10:59 +0000 (Mon, 31 Dec 2007)
New Revision: 400

Modified:
   tuxmath/trunk/src/fileops.c
Log:
Add a "Numbered answered" field to the log.csv file.


Modified: tuxmath/trunk/src/fileops.c
===================================================================
--- tuxmath/trunk/src/fileops.c	2007-12-31 13:19:37 UTC (rev 399)
+++ tuxmath/trunk/src/fileops.c	2007-12-31 14:10:59 UTC (rev 400)
@@ -2799,10 +2799,10 @@
     fp = fopen(filepath1, "a"); /* "a" means append to end of file */
     if (fp) {
       if (write_column_names) {
-	fprintf(fp,"\"User\",\"Mission\",\"Date\",\"Completed?\",\"Percent correct\",\"Time per question\"\n");
+	fprintf(fp,"\"User\",\"Mission\",\"Date\",\"Completed?\",\"Number answered\",\"Percent correct\",\"Time per question\"\n");
       }
       mission_name = strdup(last_config_file_name);
-      fprintf(fp,"\"%s\",\"%s\",%d/%d/%d,%d,%d,%g\n", get_user_name(), get_file_name(mission_name), datetime.tm_year+1900, datetime.tm_mon+1, datetime.tm_mday, MC_MissionAccomplished(), ((MC_NumAnsweredCorrectly() * 100)/ total_answered), median_time);
+      fprintf(fp,"\"%s\",\"%s\",%d/%d/%d,%d,%d,%d,%g\n", get_user_name(), get_file_name(mission_name), datetime.tm_year+1900, datetime.tm_mon+1, datetime.tm_mday, MC_MissionAccomplished(), total_answered, ((MC_NumAnsweredCorrectly() * 100)/ total_answered), median_time);
       fclose(fp);
       free(mission_name);
     } else




More information about the Tux4kids-commits mailing list