[OE-core] [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields
Ross Burton
ross.burton at intel.com
Mon Jul 30 12:18:06 UTC 2012
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
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 29dc4a9..d0e0808 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -300,7 +300,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() != '':
--
1.7.10
More information about the Openembedded-core
mailing list