git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@146 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d 2012-03-16 13:05:38 +00:00
parent 794ab4fdfc
commit 2076fb75f5
2 changed files with 8 additions and 10 deletions

View File

@ -143,7 +143,6 @@ slsDetector::slsDetector(int id) :slsDetectorUtils(),
{
detectorType type=(detectorType)getDetectorType(id);
while (shmId<0) {
/**Initlializes shared memory \sa initSharedMemory
@ -2780,18 +2779,17 @@ int slsDetector::updateDetectorNoWait() {
// int it;
int64_t retval;// tns=-1;
char lastClientIP[INET_ADDRSTRLEN];
switch(thisDetector->myDetectorType){
case GOTTHARD:
n = controlSocket->ReceiveDataOnly(lastClientIP,sizeof(lastClientIP));
#ifdef VERBOSE
cout << "Updating detector last modified by " << lastClientIP << endl;// commented out by dhanya for now
cout << "Updating detector last modighfied by " << lastClientIP << std::endl;// commented out by dhanya for now
#endif
break;
default:
n = controlSocket->ReceiveDataOnly(lastClientIP,sizeof(lastClientIP));
#ifdef VERBOSE
cout << "Updating detector last modified by " << lastClientIP << endl;
cout << "Updating detector last modified by " << lastClientIP << std::endl;
#endif
n = controlSocket->ReceiveDataOnly(&nm,sizeof(nm));
thisDetector->nMod[X]=nm;