Changeset 7888 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 08/19/06 20:26:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r7804 r7888 85 85 #include "MLogManip.h" 86 86 87 #include "MString.h" 87 88 #include "MParList.h" 88 89 #include "MTaskList.h" … … 272 273 UInt_t MEvtLoop::GetMemoryUsage() 273 274 { 274 const TString path = Form("/proc/%d/status", gSystem->GetPid());275 const TString path = MString::Format("/proc/%d/status", gSystem->GetPid()); 275 276 if (gSystem->AccessPathName(path, kFileExists)) 276 277 return 0; … … 378 379 // Set new progress bar position 379 380 // 380 if (fProgress && fNumEvents>0) 381 fProgress->SetPosition((Double_t)num/fNumEvents); 381 if (fNumEvents>0 && fProgress) 382 { 383 const Double_t pos = (Double_t)num/fNumEvents; 384 fProgress->SetPosition(pos); 385 // if (gROOT->IsBatch()) 386 // *fLog << all << MString::Format("%.1f", pos) << "%..." << flush; 387 } 382 388 383 389 // FIXME: This is a workaround, because TApplication::Run is not … … 906 912 // If available print the contents of the parameter list. 907 913 // 908 void MEvtLoop::Print(Option_t * opt) const914 void MEvtLoop::Print(Option_t *) const 909 915 { 910 916 if (fParList)
Note:
See TracChangeset
for help on using the changeset viewer.