Skip to content

Commit

Permalink
decode: opentelemetry: fix integer assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 27, 2024
1 parent f1b99db commit 0fe28b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmt_decode_opentelemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ static int decode_numerical_data_point(struct cmt *cmt,
value = 0;
}
else {
value = cmt_math_uint64_to_d64((uint64_t) data_point->as_int);
value = data_point->as_int;
}
}
else if (data_point->value_case == OPENTELEMETRY__PROTO__METRICS__V1__NUMBER_DATA_POINT__VALUE_AS_DOUBLE) {
Expand Down

0 comments on commit 0fe28b6

Please sign in to comment.