Changeset 11545
- Timestamp:
- 07/22/11 23:01:26 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/design.ui
r11536 r11545 53 53 </property> 54 54 <property name="currentIndex"> 55 <number> 3</number>55 <number>4</number> 56 56 </property> 57 57 <property name="documentMode"> … … 5157 5157 </widget> 5158 5158 </item> 5159 <item row="3" column="1">5160 <widget class="QSpinBox" name="fFadEvtBufNew">5161 <property name="alignment">5162 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>5163 </property>5164 <property name="readOnly">5165 <bool>true</bool>5166 </property>5167 <property name="buttonSymbols">5168 <enum>QAbstractSpinBox::NoButtons</enum>5169 </property>5170 <property name="suffix">5171 <string> evts</string>5172 </property>5173 <property name="maximum">5174 <number>2147483647</number>5175 </property>5176 </widget>5177 </item>5178 5159 <item row="4" column="0"> 5179 5160 <widget class="QLabel" name="label_139"> … … 5336 5317 <property name="maximum"> 5337 5318 <number>2147483647</number> 5319 </property> 5320 </widget> 5321 </item> 5322 <item row="1" column="2"> 5323 <widget class="QSpinBox" name="fFadEvtBufMax"> 5324 <property name="alignment"> 5325 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 5326 </property> 5327 <property name="readOnly"> 5328 <bool>true</bool> 5329 </property> 5330 <property name="buttonSymbols"> 5331 <enum>QAbstractSpinBox::NoButtons</enum> 5332 </property> 5333 <property name="suffix"> 5334 <string> evts</string> 5335 </property> 5336 <property name="maximum"> 5337 <number>2147483647</number> 5338 </property> 5339 </widget> 5340 </item> 5341 <item row="3" column="1"> 5342 <widget class="QSpinBox" name="fFadEvtBufNew"> 5343 <property name="alignment"> 5344 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 5345 </property> 5346 <property name="readOnly"> 5347 <bool>true</bool> 5348 </property> 5349 <property name="buttonSymbols"> 5350 <enum>QAbstractSpinBox::NoButtons</enum> 5351 </property> 5352 <property name="suffix"> 5353 <string> evts</string> 5354 </property> 5355 <property name="maximum"> 5356 <number>2147483647</number> 5357 </property> 5358 </widget> 5359 </item> 5360 <item row="0" column="2"> 5361 <widget class="QLabel" name="label_160"> 5362 <property name="text"> 5363 <string>Max in buffer</string> 5364 </property> 5365 <property name="alignment"> 5366 <set>Qt::AlignBottom|Qt::AlignHCenter</set> 5338 5367 </property> 5339 5368 </widget> -
trunk/FACT++/src/EventBuilder.c
r11521 r11545 467 467 if (gj.usdMem > gj.maxMem ) gj.maxMem = gj.usdMem ; 468 468 469 gj.bufTot++ ; 470 if (gj.bufTot > gj.maxEvt ) gj.maxEvt = gj.bufTot ; 471 469 472 gj.rateNew++ ; 470 473 … … 514 517 515 518 gj.usdMem = gj.usdMem - freemem - headmem; 519 gj.bufTot-- ; 516 520 517 521 if (gi_memStat < 0 ) { … … 657 661 if ( gi_resetR > 0) { 658 662 resetEvtStat(); 663 gj.bufTot = gj.maxEvt = gj.xxxEvt = 0 ; 659 664 gj.usdMem = gj.maxMem = gj.xxxMem = 0 ; 660 665 gj.totMem = g_maxMem ; … … 1083 1088 for ( b=0; b<NBOARDS; b++) gj.totBytes[b] +=gj.rateBytes[b] ; 1084 1089 gj.totMem = g_maxMem ; 1085 if (gj.maxMem >= gj.xxxMem) gj.xxxMem = gj.maxMem ; 1090 if (gj.maxMem > gj.xxxMem) gj.xxxMem = gj.maxMem ; 1091 if (gj.maxEvt > gj.xxxEvt) gj.xxxEvt = gj.maxEvt ; 1086 1092 1087 1093 factStat(gj); … … 1089 1095 gj.rateNew = gj.rateWrite = 0 ; 1090 1096 gj.maxMem = gj.usdMem ; 1097 gj.maxEvt = gj.bufTot ; 1091 1098 for ( b=0; b<NBOARDS; b++) gj.rateBytes[b] =0 ; 1092 1099 } -
trunk/FACT++/src/EventBuilderWrapper.h
r11542 r11545 840 840 fDimPrescaler ("FAD_CONTROL/PRESCALER", "S:42", ""), 841 841 fDimRefClock ("FAD_CONTROL/REFERENCE_CLOCK", "I:42", ""), 842 fDimStatistics1 ("FAD_CONTROL/STATISTICS1", "I:3;I: 2;X:4;I:3;I:3;I:40;I:1;I:2;C:40;I:40;I:40;X:40", ""),842 fDimStatistics1 ("FAD_CONTROL/STATISTICS1", "I:3;I:5;X:4;I:3;I:3;I:40;I:1;I:2;C:40;I:40;I:40;X:40", ""), 843 843 fDimStatistics2 ("FAD_CONTROL/STATISTICS2", "I:1;I:280;X:40;I:40;I:4;I:4;I:2;I:2;I:3;C:40", ""), 844 844 fDebugStream(false), fDebugRead(false), fDebugLog(false) … … 1707 1707 if (old.fStatus != h.fStatus || changed) 1708 1708 { 1709 cout << "Send" << endl;1710 1709 const array<uint16_t,42> sts = CompareBits(&h, &h.fStatus); 1711 1710 Update(fDimStatus, sts);
Note:
See TracChangeset
for help on using the changeset viewer.