Fix a bug in normalizing to a given series in metrics plotting which was basically assuming the to-be-normalized series was a superset of the baseline series (in terms of x-values). There was a bit of code to eliminate values in the to-be-normalized series if no corresponding x-value existed in the baseline series. However, if there were x-values in the baseline series that didn't exist in the to-be-normalized series, the normalization process would match up the wrong values and yield incorrect results.
I also extracted the code under question into its own function, since the _create_metrics_plot_helper function is way too long.
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2843 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed