Changeset 12341
- Timestamp:
- 10/31/11 00:11:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12328 r12341 1852 1852 1853 1853 uint32_t sum = 0; 1854 int32_t min = 0x7fffff;1855 int32_t max = 0;1854 //int32_t min = 0x7fffff; 1855 //int32_t max = 0; 1856 1856 1857 1857 int cnt = 0; … … 1860 1860 for (int i=0; i<40; i++) 1861 1861 { 1862 if (stat.numConn[i]!= 7)1862 if (stat.numConn[i]!=1) 1863 1863 continue; 1864 1864 … … 1868 1868 err += stat.errConn[i]; 1869 1869 1870 if (stat.rateBytes[i]<min)1871 min = stat.rateBytes[i];1872 if (stat.rateBytes[i]>max)1873 max = stat.rateBytes[i];1870 //if (stat.rateBytes[i]<min) 1871 // min = stat.rateBytes[i]; 1872 //if (stat.rateBytes[i]>max) 1873 // max = stat.rateBytes[i]; 1874 1874 } 1875 1875 … … 1887 1887 return; 1888 1888 1889 fFadEthernetRateMin->setValue(min/stat.deltaT);1890 fFadEthernetRateMax->setValue(max/stat.deltaT);1889 //fFadEthernetRateMin->setValue(min/stat.deltaT); 1890 //fFadEthernetRateMax->setValue(max/stat.deltaT); 1891 1891 fFadEthernetRateTot->setValue(sum/stat.deltaT); 1892 1892 fFadEthernetRateAvg->setValue(cnt==0 ? 0 : sum/cnt/stat.deltaT); 1893 fFadEvtRateNew->setValue(1000*stat.rateNew/stat.deltaT); 1894 fFadEvtRateWrite->setValue(1000*stat.rateWrite/stat.deltaT); 1895 1896 fFadTransmission->setValue(fFadEvtRateNew->value()); 1897 fFadEthernet->setValue(fFadEthernetRateTot->value()); 1898 fFadWriteRate->setValue(fFadEvtRateWrite->value()); 1893 1894 fFadTransmission->setValue(1000*stat.rateNew/stat.deltaT); 1895 fFadWriteRate->setValue(1000*stat.rateWrite/stat.deltaT); 1899 1896 } 1900 1897
Note:
See TracChangeset
for help on using the changeset viewer.