From 258b06e5600b6ed3ee967376583faadf26b9e99e Mon Sep 17 00:00:00 2001 From: Ruud Overeem <overeem@astron.nl> Date: Wed, 26 Jul 2006 15:02:39 +0000 Subject: [PATCH] BugID: 796 --- MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc index 00856e37859..a8b734597bf 100644 --- a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc +++ b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc @@ -21,7 +21,7 @@ //# $Id$ #include <lofar_config.h> #include <Common/LofarLogger.h> -#include <Common/Deployment.h> +#include <Deployment/StationInfo.h> #include <boost/shared_array.hpp> #include <APS/ParameterSet.h> @@ -42,6 +42,7 @@ using namespace LOFAR::GCF::Common; using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::PAL; using namespace LOFAR::OTDB; +using namespace LOFAR::Deployment; using namespace std; namespace LOFAR { @@ -446,10 +447,11 @@ void MACScheduler::_doOTDBcheck() OTDB::TreeMaintenance tm(itsOTDBconnection); OTDB::treeIDType treeID = newTreeList[idx].treeID(); OTDBnode topNode = tm.getTopNode(treeID); - string filename = string(LOFAR_SHARE_LOCATION) + - "/" + cntlrName; + // NOTE: this name must be the same as in the ChildControl. + string filename = formatString("%s/Observation_%d", + LOFAR_SHARE_LOCATION, treeID); if (!tm.exportTree(treeID, topNode.nodeID(), filename)) { - LOG_ERROR_STR ("Cannot create startup file " << filename << + LOG_ERROR_STR ("Cannot create parset file " << filename << " for new observation. Observation CANNOT BE STARTED!"); } else { -- GitLab