Ignore:
Timestamp:
08/19/06 20:26:37 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r7804 r7888  
    8585#include "MLogManip.h"
    8686
     87#include "MString.h"
    8788#include "MParList.h"
    8889#include "MTaskList.h"
     
    272273UInt_t MEvtLoop::GetMemoryUsage()
    273274{
    274     const TString path = Form("/proc/%d/status", gSystem->GetPid());
     275    const TString path = MString::Format("/proc/%d/status", gSystem->GetPid());
    275276    if (gSystem->AccessPathName(path, kFileExists))
    276277        return 0;
     
    378379    // Set new progress bar position
    379380    //
    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    }
    382388
    383389    // FIXME: This is a workaround, because TApplication::Run is not
     
    906912// If available print the contents of the parameter list.
    907913//
    908 void MEvtLoop::Print(Option_t *opt) const
     914void MEvtLoop::Print(Option_t *) const
    909915{
    910916    if (fParList)
Note: See TracChangeset for help on using the changeset viewer.