Skip to content
Commit 5282ccaa authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Anas Nashif
Browse files

net: prometheus: Use const pointer for string data



Instead of allocating space for description and label name + value,
have a const pointer for it. The data is set typically statically
when the metric is defined, so there should be no need to allocate
separate buffer for those strings.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
parent 90fb4b38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment