Changeset 3364 for trunk/MagicSoft/Mars/merpp.cc
- Timestamp:
- 03/01/04 10:26:20 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/merpp.cc
r3336 r3364 85 85 Int_t y=0, ms=0, mon=0, d=0, h=0, m=0, s=0; 86 86 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; 88 92 return MTime(); 93 } 89 94 90 95 MTime t; … … 122 127 MTime kTimeStart(AnalyseTime(arg.GetStringAndRemove("--start="))); 123 128 MTime kTimeStop(AnalyseTime(arg.GetStringAndRemove("--stop="))); 124 kTimeStart.SetName("MTimeStart");125 kTimeStop.SetName("MTimeStop");126 129 127 130 const Int_t kRunNumber = arg.HasOption("--run=") ? arg.GetIntAndRemove("--run=") : -1; … … 150 153 const Bool_t isreport = kNamein.EndsWith(".rep"); 151 154 const Bool_t isdc = kNamein.EndsWith(".txt"); 152 const Bool_t israw = !isreport && !is raw;155 const Bool_t israw = !isreport && !isdc; 153 156 154 157 if (!kNamein.EndsWith(".raw") && israw)
Note:
See TracChangeset
for help on using the changeset viewer.