Update source/src/services.cpp
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 33s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m0s

This commit is contained in:
Your Name
2025-09-01 19:51:45 +12:00
parent 6b6ccd4075
commit aea0f0f307

View File

@@ -143,7 +143,10 @@ namespace dropshell
error << "Variable TEMPLATE_HASH not found in the service " << filenames::template_info_env << " for "<<server_name << " - "<< service.template_name << std::endl;
else if (tinfo.is_set())
{
uint64_t service_template_hash = std::stoull(it->second);
std::string template_hash_str = it->second;
uint64_t service_template_hash = 0;
if (!template_hash_str.empty())
service_template_hash = std::stoull(template_hash_str);
service.service_template_hash_match = (service_template_hash == tinfo.hash());
//debug << "Service template hash: " << service_template_hash << " == " << tinfo.hash() << std::endl;
}