From 36c7c64519959cc7c0ad69a7483ef556845f1cba Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 30 Jul 2012 13:18:06 +0100 Subject: buildhistory: correctly handle reductions of numeric fields (From OE-Core rev: 94fffb92e6a7a8021fb1acb06b9c4218703e23b2) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oe/buildhistory_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index a5da7d9944..7dec6c1342 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() != '': -- cgit v1.2.3-54-g00ecf