Update: Stats.c: shorter goal summary in Stats output
@@ -66,11 +66,13 @@ void Stats_Print(long currentTime)
printf("total concepts:\t\t\t%d\n", concepts.itemsAmount);
printf("current average concept priority:\t%f\n", Stats_averageConceptPriority);
printf("current average concept usefulness:\t%f\n", Stats_averageConceptUsefulness);
- printf("curring belief events cnt:\t\t%d\n", cycling_belief_events.itemsAmount);
+ printf("current belief events cnt:\t\t%d\n", cycling_belief_events.itemsAmount);
+ int goal_events_cnt = 0;
for(int layer=0; layer<CYCLING_GOAL_EVENTS_LAYERS; layer++)
{
- printf("curring goal events cnt:\t\t%d in layer %d\n", cycling_goal_events[layer].itemsAmount, layer);
+ goal_events_cnt += cycling_goal_events[layer].itemsAmount;
}
+ printf("current goal events cnt:\t\t%d\n", goal_events_cnt);
printf("current average belief event priority:\t%f\n", Stats_averageBeliefEventPriority);
printf("current average goal event priority:\t%f\n", Stats_averageGoalEventPriority);
printf("Maximum chain length in concept hashtable: %d\n", HashTable_MaximumChainLength(&HTconcepts));
