X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Ftrace-collection.c;h=c117874812bfebf28110ee8d9c3013ac16402831;hp=42d809623d419d22d2df194fe88e45c92ae6592b;hb=09349576c27925daab50630bff7d219eebc8df98;hpb=17d37c4d92c1f0f8e81b18ae1cde2c509dc06d54 diff --git a/lib/trace-collection.c b/lib/trace-collection.c index 42d80962..c1178748 100644 --- a/lib/trace-collection.c +++ b/lib/trace-collection.c @@ -132,7 +132,8 @@ static void clock_add(gpointer key, gpointer value, gpointer user_data) /* * Whenever we add a trace to the trace collection, check that we can - * correlate this trace with at least one other clock in the trace. + * correlate this trace with at least one other clock in the trace and + * convert the index from cycles to real time. */ int trace_collection_add(struct trace_collection *tc, struct trace_descriptor *td) @@ -177,6 +178,7 @@ int trace_collection_add(struct trace_collection *tc, clock_add, &clock_match); } + return 0; error: return -EPERM;