Refactored out redundant code in this script. All the code that generates a cell an HTML table for a metric has been refactored into two methods. The first method:
Refactored out redundant code in this script. All the code that
generates a cell an HTML table for a metric has been refactored
into two methods. The first method:

getLessIsBetterMetricStatus(thisMetric, prevMetric);

takes a metric and its previous metric, and generates the colored
(red/green/white) table cell. The second method:

getLessIsBetterThresholdMetricStatus(thisMetric, prevMetric, threshold);

does the same thing, but decides if the metric has degraded or improved if
its more than 'threshold' percent different. So if threshold is 0.1, then
if 'thisMetric' is more than 10% than 'prevMetric', then the metric has
degraded.


git-svn-id: a8b04003a33e1d3e001b9d20391fa392a9f62d91@2311 94700074-3cef-4d97-a70e-9c8c206c02f5

deepstupid/sphinx5