examples: Fix formatting

This commit is contained in:
Eduardo Almeida
2023-05-12 22:34:03 +01:00
parent 7edb8793f2
commit b06786f5c9

View File

@@ -79,8 +79,8 @@ static std::map<uint32_t, uint32_t> ssThreshValue; //!< SlowSta
static uint32_t
GetNodeIdFromContext(std::string context)
{
std::size_t const n1 = context.find_first_of('/', 1);
std::size_t const n2 = context.find_first_of('/', n1 + 1);
const std::size_t n1 = context.find_first_of('/', 1);
const std::size_t n2 = context.find_first_of('/', n1 + 1);
return std::stoul(context.substr(n1 + 1, n2 - n1 - 1));
}