]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: correctly handle reductions of numeric fields
authorRoss Burton <ross.burton@intel.com>
Mon, 30 Jul 2012 12:18:06 +0000 (13:18 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Aug 2012 15:08:20 +0000 (16:08 +0100)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildhistory_analysis.py

index a5da7d9944aacfb0988d70f9865066e199798b82..7dec6c1342c736b0dd4a597d829f251e67a3ab6d 100644 (file)
@@ -308,7 +308,7 @@ def compare_dict_blobs(path, ablob, bblob, report_all):
                     percentchg = ((bval - aval) / float(aval)) * 100
                 else:
                     percentchg = 100
-                if percentchg < monitor_numeric_threshold:
+                if abs(percentchg) < monitor_numeric_threshold:
                     continue
             elif (not report_all) and key in list_fields:
                 if key == "FILELIST" and path.endswith("-dbg") and bstr.strip() != '':