]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - SHUTTLE/AliShuttleTrigger.cxx
Moving fourier decomposition analysis code
[u/mrichter/AliRoot.git] / SHUTTLE / AliShuttleTrigger.cxx
index e4225b9f11bac1fa7c7ecb9b00f91e564e40e15b..9105d3559442db34aef7f3158d4b0f351f7156e0 100644 (file)
@@ -217,7 +217,7 @@ void AliShuttleTrigger::CheckTerminate()
        if (strlen(fConfig->GetTerminateFilePath()) == 0)
                return;
 
-       if (gSystem->AccessPathName(fConfig->GetTerminateFilePath()))
+       if (gSystem->AccessPathName(fConfig->GetTerminateFilePath()) == kFALSE)
        {
                AliInfo("Terminate file exists. Terminating Shuttle...");
                fTerminate = kTRUE;
@@ -287,6 +287,7 @@ void AliShuttleTrigger::Run() {
                }
        
                Collect();
+               CheckTerminate();
        }
 
        delete notifier;
@@ -308,7 +309,7 @@ Bool_t AliShuttleTrigger::Collect(Int_t run)
 
        gSystem->GetFsInfo(fConfig->GetShuttleFileSystem(), &id, &bsize, &blocks, &bfree);
 
-       AliInfo(Form("n. of free blocks = %d, total n. of blocks = %d",bfree,blocks));
+       AliInfo(Form("n. of free blocks = %ld, total n. of blocks = %ld",bfree,blocks));
        Int_t spaceFree = (Int_t)(((Float_t)bfree/(Float_t)blocks)*100);
 
        if (spaceFree < fConfig->GetFreeDiskWarningThreshold()) {