We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff0b89 commit 78c6f49Copy full SHA for 78c6f49
1 file changed
src/frequenz/client/reporting/_types.py
@@ -190,7 +190,7 @@ def sample(self) -> MetricSample:
190
metric = Metric(config.metric).name
191
# Ignoring this verification results in
192
# values of zero if the field is not set.
193
- if sample.HasField("sample") and sample.sample.HasField("value"):
+ if sample.HasField("sample"):
194
value = sample.sample.value
195
else:
196
value = math.nan
0 commit comments