/[PAMELA software]/YodaProfiler/src/YodaProfiler.cpp
ViewVC logotype

Diff of /YodaProfiler/src/YodaProfiler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by mocchiut, Tue Sep 12 07:28:48 2006 UTC revision 1.9 by mocchiut, Tue Sep 12 13:22:55 2006 UTC
# Line 58  int main(int numinp, char *inps[]){ Line 58  int main(int numinp, char *inps[]){
58    TString user = "anonymous";    TString user = "anonymous";
59    TString password = "";    TString password = "";
60    //    //
61    const char *pamdbhost=gSystem->Getenv("PAM_DBHOST");    const char *pamdbhost = gSystem->Getenv("PAM_DBHOST");
62    const char *pamdbuser=gSystem->Getenv("PAM_DBUSER");    const char *pamdbuser = gSystem->Getenv("PAM_DBUSER");
63    const char *pamdbpsw=gSystem->Getenv("PAM_DBPSW");    const char *pamdbpsw = gSystem->Getenv("PAM_DBPSW");
64      if ( !pamdbhost ) pamdbhost = "";
65      if ( !pamdbuser ) pamdbuser = "";
66      if ( !pamdbpsw ) pamdbpsw = "";
67    if ( strcmp(pamdbhost,"") ) host = pamdbhost;    if ( strcmp(pamdbhost,"") ) host = pamdbhost;
68    if ( strcmp(pamdbuser,"") ) user = pamdbuser;    if ( strcmp(pamdbuser,"") ) user = pamdbuser;
69    if ( strcmp(pamdbpsw,"") ) password = pamdbpsw;    if ( strcmp(pamdbpsw,"") ) password = pamdbpsw;
# Line 263  int main(int numinp, char *inps[]){ Line 266  int main(int numinp, char *inps[]){
266        //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
267        //Clean the GL_RUN_FRAGMENTS        //Clean the GL_RUN_FRAGMENTS
268        //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
269        if ( beverbose ) printf(" 10 => Clean the GL_RUN_FRAGMENTS table (before %s) \n",pamDB->GetCleanTime() );        if ( beverbose ) printf(" 10 => Clean the GL_RUN_FRAGMENTS table (earlier than %s) \n",pamDB->GetCleanTime() );
270        WAR[8] = pamDB->CleanGL_RUN_FRAGMENTS();        WAR[8] = pamDB->CleanGL_RUN_FRAGMENTS();
271        //-------------------------------------------------------------------------------------------            //-------------------------------------------------------------------------------------------    
272                    
273        //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
274        //Validate runs        //Validate runs
275        //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
276        if ( beverbose ) printf(" 11 => Validate runs (before %s)\n",pamDB->GetCleanTime());        if ( beverbose ) printf(" 11 => Validate runs (earlier than %s)\n",pamDB->GetCleanTime());
277        WAR[9] = pamDB->ValidateRuns();        WAR[9] = pamDB->ValidateRuns();
278        //-------------------------------------------------------------------------------------------            //-------------------------------------------------------------------------------------------    
279      };      };

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23