tracer/gsttr-stats: skip optional fields

This commit is contained in:
Stefan Sauer 2016-12-20 12:10:43 +01:00
parent 167be7d7af
commit 4771b445e9

View file

@ -107,6 +107,8 @@ class Stats(Analyzer):
# skip optional fields
if not vk in s.values:
continue
if not s.values.get('have-' + vk, True):
continue
key = entry_name + "/" + vk
data = scope.get(key)