Skip to content

Commit

Permalink
correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Jul 29, 2024
1 parent ead51e5 commit 83c59f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/framework/core/inc/TRestRun.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class TRestRun : public TRestMetadata {
inline TFile* GetInputFile() const { return fInputFile; }
inline TFile* GetOutputFile() const { return fOutputFile; }
inline int GetCurrentEntry() const { return fCurrentEvent; }
inline Long64_t GetBytesReaded() const { return fBytesRead; }
inline Long64_t GetBytesRead() const { return fBytesRead; }
Long64_t GetTotalBytes();
Long64_t GetEntries() const;

Expand Down
6 changes: 3 additions & 3 deletions source/framework/core/src/TRestProcessRunner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ void TRestProcessRunner::PrintProcessedEvents(Int_t rateE) {
if (fEventsToProcess == REST_MAXIMUM_EVENTS && fRunInfo->GetFileProcess() != nullptr)
// Nevents is unknown, reading external data file
{
prog = fRunInfo->GetBytesReaded() / (double)fRunInfo->GetTotalBytes() * 100;
prog = fRunInfo->GetBytesRead() / (double)fRunInfo->GetTotalBytes() * 100;
} else if (fRunInfo->GetFileProcess() != nullptr)
// Nevents is known, reading external data file
{
Expand Down Expand Up @@ -1140,8 +1140,8 @@ void TRestProcessRunner::PrintProcessedEvents(Int_t rateE) {
fflush(stdout);
}

bytesAdded[poscalculated] = fRunInfo->GetBytesReaded() - bytesReaded_last;
bytesReaded_last = fRunInfo->GetBytesReaded();
bytesAdded[poscalculated] = fRunInfo->GetBytesRead() - bytesReaded_last;
bytesReaded_last = fRunInfo->GetBytesRead();
progAdded[poscalculated] = prog - prog_last;
prog_last = prog;

Expand Down

0 comments on commit 83c59f7

Please sign in to comment.