[oe-commits] Ross Burton : buildhistory: correctly handle reductions of numeric fields

git at git.openembedded.org git at git.openembedded.org
Mon Aug 6 15:13:14 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 94fffb92e6a7a8021fb1acb06b9c4218703e23b2
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=94fffb92e6a7a8021fb1acb06b9c4218703e23b2

Author: Ross Burton <ross.burton at intel.com>
Date:   Mon Jul 30 13:18:06 2012 +0100

buildhistory: correctly handle reductions of numeric fields

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oe/buildhistory_analysis.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index a5da7d9..7dec6c1 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -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() != '':





More information about the Openembedded-commits mailing list