Ignore:
Timestamp:
03/01/04 10:26:20 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/merpp.cc

    r3336 r3364  
    8585    Int_t y=0, ms=0, mon=0, d=0, h=0, m=0, s=0;
    8686
    87     if (7!=sscanf(str.Data(), "%d-%d-%d/%d:%d:%d.%d", &y, &mon, &d, &h, &m, &s, &ms))
     87    const Int_t n = sscanf(str.Data(), "%d-%d-%d/%d:%d:%d.%d", &y, &mon, &d, &h, &m, &s, &ms);
     88
     89    if (n<6 || n>7)
     90    {
     91        gLog << warn << "'" << str << "' no valid Time... ignored." << endl;
    8892        return MTime();
     93    }
    8994
    9095    MTime t;
     
    122127    MTime kTimeStart(AnalyseTime(arg.GetStringAndRemove("--start=")));
    123128    MTime kTimeStop(AnalyseTime(arg.GetStringAndRemove("--stop=")));
    124     kTimeStart.SetName("MTimeStart");
    125     kTimeStop.SetName("MTimeStop");
    126129
    127130    const Int_t   kRunNumber   = arg.HasOption("--run=") ? arg.GetIntAndRemove("--run=") : -1;
     
    150153    const Bool_t isreport = kNamein.EndsWith(".rep");
    151154    const Bool_t isdc     = kNamein.EndsWith(".txt");
    152     const Bool_t israw    = !isreport && !israw;
     155    const Bool_t israw    = !isreport && !isdc;
    153156
    154157    if (!kNamein.EndsWith(".raw") && israw)
Note: See TracChangeset for help on using the changeset viewer.