Ignore:
Timestamp:
02/11/09 11:57:57 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

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

    r8907 r9314  
    6060
    6161#include "MArgs.h"
     62#include "MString.h"
    6263
    6364ClassImp(MEnv);
     
    541542
    542543    if (style>3999 && style<4101)
    543         val = Form("%d%%", style-4000);
     544        val = MString::Format("%d%%", style-4000);
    544545
    545546    switch (style)
  • trunk/MagicSoft/Mars/mbase/MTask.cc

    r8907 r9314  
    233233    // This does not reset the counter!
    234234    fStopwatch->Reset();
    235     fNumExecutions = 0;
    236     fNumExec0 = GetNumExecutionsTotal();
     235    fNumExec0 = fNumExecutions;
    237236
    238237    *fLog << all << GetDescriptor() << "... " << flush;
     
    400399UInt_t MTask::GetNumExecutions() const
    401400{
    402     return GetNumExecutionsTotal()-fNumExec0;
    403 }
    404 
    405 // --------------------------------------------------------------------------
    406 //
    407 //  Return the total number of calls to Process(). If Process() was not
     401    return fNumExecutions-fNumExec0;
     402}
     403
     404// --------------------------------------------------------------------------
     405//
     406//  Return the total number of calls to Process() ever. If Process() was not
    408407//  called due to a set filter this is not counted.
    409408//
    410409UInt_t MTask::GetNumExecutionsTotal() const
    411410{
    412     return fNumExecutions-1;
     411    return fNumExecutions;
    413412}
    414413
     
    467466    *fLog << GetDescriptor();
    468467
    469     if (GetNumExecutions()!=(UInt_t)-1)
     468    if (GetNumExecutions()>0)
    470469        *fLog << "\t" << dec << GetNumExecutions();
    471470
Note: See TracChangeset for help on using the changeset viewer.