From 7300f3af9003a8c071a373b7bf8bedd9c9a2a245 Mon Sep 17 00:00:00 2001 From: Martin Killenberg <martin.killenberg@desy.de> Date: Fri, 3 Nov 2017 09:53:29 +0100 Subject: [PATCH] changed maximal length for properties with history to accomodate the ._HIST extension --- src/DoocsPVFactory.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DoocsPVFactory.cc b/src/DoocsPVFactory.cc index 48865fa..18dd544 100644 --- a/src/DoocsPVFactory.cc +++ b/src/DoocsPVFactory.cc @@ -30,7 +30,8 @@ namespace ChimeraTK { boost::shared_ptr<D_fct> doocsPV; // Histories seem to be supported by DOOCS only for property names shorter than 64 characters, so disable history for longer names. // The DOOCS property name is the variable name without the location name and the separating slash between location and property name. - if(propertyDescription.name.length() > 64) { + // One has to subtract another 6 characters because Doocs automatically adds "._HIST", which also has to fit into the 64 characters + if(propertyDescription.name.length() > 64-6) { std::cerr << "WARNING: Disabling history for " << processArray->getName() << ". Name is too long." << std::endl; doocsPV.reset( new DoocsProcessScalar<DOOCS_PRIMITIVE_T, DOOCS_T>(propertyDescription.name.c_str(), _eqFct, processArray, _updater) ); } -- GitLab