Changeset 11312
- Timestamp:
- 07/10/11 14:05:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11299 r11312 752 752 const uint64_t *vals = d.ptr<uint64_t>(); 753 753 754 const size_t written= vals[0];755 const size_t space= vals[1];756 const size_t rate = vals[2];754 const size_t space = vals[0]; 755 const size_t written = vals[1]; 756 const size_t rate = float(vals[2])/vals[3]; 757 757 758 758 fLoggerFreeSpace->setSuffix(" MB"); … … 785 785 fLoggerRate->setSuffix(" kB/s"); 786 786 fLoggerRate->setDecimals(2); 787 fLoggerRate->setValue(rate *1e-3);788 if (rate> 2 000) // > 2kB/s787 fLoggerRate->setValue(rate); 788 if (rate> 2) // > 2kB/s 789 789 { 790 790 fLoggerRate->setSuffix(" kB/s"); 791 791 fLoggerRate->setDecimals(1); 792 fLoggerRate->setValue(rate *1e-3);793 } 794 if (rate>=100 000) // >100kB/s792 fLoggerRate->setValue(rate); 793 } 794 if (rate>=100) // >100kB/s 795 795 { 796 796 fLoggerRate->setSuffix(" kB/s"); 797 797 fLoggerRate->setDecimals(0); 798 fLoggerRate->setValue(rate *1e-3);799 } 800 if (rate>=1000 000) // >100kB/s798 fLoggerRate->setValue(rate); 799 } 800 if (rate>=1000) // >100kB/s 801 801 { 802 802 fLoggerRate->setSuffix(" MB/s"); 803 803 fLoggerRate->setDecimals(2); 804 fLoggerRate->setValue(rate*1e- 6);805 } 806 if (rate>=10000 000) // >1MB/s804 fLoggerRate->setValue(rate*1e-3); 805 } 806 if (rate>=10000) // >1MB/s 807 807 { 808 808 fLoggerRate->setSuffix(" MB/s"); 809 809 fLoggerRate->setDecimals(1); 810 fLoggerRate->setValue(rate*1e- 6);811 } 812 if (rate>=100000 000) // >10MB/s810 fLoggerRate->setValue(rate*1e-3); 811 } 812 if (rate>=100000) // >10MB/s 813 813 { 814 814 fLoggerRate->setSuffix(" MB/s"); 815 815 fLoggerRate->setDecimals(0); 816 fLoggerRate->setValue(rate*1e- 6);816 fLoggerRate->setValue(rate*1e-3); 817 817 } 818 818 … … 893 893 void handleFadRuns(const DimData &d) 894 894 { 895 if (d.size()==0) 896 return; 897 895 898 if (d.size()<20) 896 899 {
Note:
See TracChangeset
for help on using the changeset viewer.