mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-19 08:48:51 +01:00
working
This commit is contained in:
@@ -1857,14 +1857,14 @@ std::string multiSlsDetector::getReceiverStreamingIP(int detPos) {
|
||||
return sls::concatenateIfDifferent(r);
|
||||
}
|
||||
|
||||
int multiSlsDetector::setDetectorNetworkParameter(networkParameter index, int delay, int detPos) {
|
||||
int multiSlsDetector::setDetectorNetworkParameter(networkParameter index, int value, int detPos) {
|
||||
// single
|
||||
if (detPos >= 0) {
|
||||
return detectors[detPos]->setDetectorNetworkParameter(index, delay);
|
||||
return detectors[detPos]->setDetectorNetworkParameter(index, value);
|
||||
}
|
||||
|
||||
// multi
|
||||
auto r = parallelCall(&slsDetector::setDetectorNetworkParameter, index, delay);
|
||||
auto r = parallelCall(&slsDetector::setDetectorNetworkParameter, index, value);
|
||||
return sls::minusOneIfDifferent(r);
|
||||
}
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ class SharedMemory {
|
||||
/**
|
||||
* Maximum length of name as from man pages
|
||||
*/
|
||||
static const int NAME_MAX = 255;
|
||||
static const int name_max_length = 255;
|
||||
|
||||
/**
|
||||
*Using the call operator to access the pointer
|
||||
@@ -236,8 +236,8 @@ class SharedMemory {
|
||||
ss << SHM_MULTI_PREFIX << multiId << SHM_SLS_PREFIX << slsId << sEnvPath;
|
||||
|
||||
std::string temp = ss.str();
|
||||
if (temp.length() > NAME_MAX) {
|
||||
std::string msg = "Shared memory initialization failed. " + temp + " has " + std::to_string(temp.length()) + " characters. \n" + "Maximum is " + std::to_string(NAME_MAX) + ". Change the environment variable " + SHM_ENV_NAME;
|
||||
if (temp.length() > name_max_length) {
|
||||
std::string msg = "Shared memory initialization failed. " + temp + " has " + std::to_string(temp.length()) + " characters. \n" + "Maximum is " + std::to_string(name_max_length) + ". Change the environment variable " + SHM_ENV_NAME;
|
||||
FILE_LOG(logERROR) << msg;
|
||||
throw SharedMemoryError(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user