Changes in external/ExRootAnalysis/ExRootProgressBar.cc [341014c:cab38f6] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/ExRootAnalysis/ExRootProgressBar.cc
r341014c rcab38f6 14 14 #include <iostream> 15 15 16 #include <string.h> 16 17 #include <stdio.h> 17 #include <string.h>18 18 19 19 using namespace std; … … 46 46 if(fEntries > 0) 47 47 { 48 Int_t hashes = Int_t(Double_t(entry) / fEntries *fWidth);48 Int_t hashes = Int_t(Double_t(entry)/fEntries*fWidth); 49 49 if(hashes > fWidth) hashes = fWidth; 50 50 if(hashes != fHashes) … … 53 53 memset(fBar + hashes, '-', fWidth - hashes); 54 54 fHashes = hashes; 55 fprintf(stderr, "** [%s] (%.2f%%)\r", fBar, Float_t(entry) / fEntries *100.0);55 fprintf(stderr, "** [%s] (%.2f%%)\r", fBar, Float_t(entry)/fEntries*100.0); 56 56 } 57 57 } … … 77 77 78 78 //------------------------------------------------------------------------------ 79
Note:
See TracChangeset
for help on using the changeset viewer.