Make the accuracy area easier to see on the broadcast graphs
[lttv.git] / lttv / lttv / sync / event_matching_broadcast.c
index 3006f40474fd4adf7261f1c9d03f476f9e79d08c..442588341237124371195e5b376cbad6a4533e6d 100644 (file)
@@ -54,7 +54,6 @@ static void partialDestroyMatchingBroadcast(SyncState* const syncState);
 static void openGraphDataFiles(SyncState* const syncState);
 static void writeAccuracyPoints(MatchingGraphsBroadcast* graphs, const
        Broadcast* const broadcast);
-void gfAddToArray(gpointer data, gpointer user_data);
 static void closeGraphDataFiles(SyncState* const syncState);
 
 
@@ -68,7 +67,7 @@ static MatchingModule matchingModuleBroadcast = {
        .finalizeMatching= &finalizeMatchingBroadcast,
        .printMatchingStats= &printMatchingStatsBroadcast,
        .graphFunctions= {
-               .writeTraceTimePlots= &writeMatchingGraphsPlotsBroadcast,
+               .writeTraceTimeForePlots= &writeMatchingGraphsPlotsBroadcast,
        }
 };
 
@@ -419,7 +418,7 @@ static void writeAccuracyPoints(MatchingGraphsBroadcast* graphs, const
        unsigned int eventNb= broadcast->events->length;
 
        events= g_array_sized_new(FALSE, FALSE, sizeof(Event*), eventNb);
-       g_queue_foreach(broadcast->events, &gfAddToArray, events);
+       g_queue_foreach(broadcast->events, &gfAddEventToArray, events);
 
        for (i= 0; i < eventNb; i++)
        {
@@ -437,19 +436,8 @@ static void writeAccuracyPoints(MatchingGraphsBroadcast* graphs, const
                        }
                }
        }
-}
-
 
-/*
- * A GFunc for g_queue_foreach()
- *
- * Args:
- *   data          Event*, event to add
- *   user_data     GArray*, array to add to
- */
-void gfAddToArray(gpointer data, gpointer user_data)
-{
-       g_array_append_val((GArray*) user_data, data);
+       g_array_free(events, TRUE);
 }
 
 
@@ -506,7 +494,7 @@ static void writeMatchingGraphsPlotsBroadcast(SyncState* const syncState, const
        {
                fprintf(syncState->graphsStream,
                        "\t\"matching_broadcast-%03d_and_%03d.data\" "
-                               "title \"Broadcast delays\" with points "
+                               "title \"Broadcast differential delays\" with points "
                                "linecolor rgb \"black\" pointtype 6 pointsize 2, \\\n", i,
                                j);
        }
This page took 0.023491 seconds and 4 git commands to generate.