FACT++  1.0
void FactGui::handleFadStatistics1 ( const DimData d)
inlineprivate

Definition at line 1585 of file FactGui.h.

References i, and DimData::ref().

Referenced by infoHandler().

1586  {
1587  if (!CheckSize(d, sizeof(GUI_STAT)))
1588  return;
1589 
1590  const GUI_STAT &stat = d.ref<GUI_STAT>();
1591 
1592  fFadBufferMax->setValue(stat.totMem/1000000); // Memory::allocated
1593  fFadBuffer->setMaximum(stat.maxMem/100); // g_maxMem
1594  fFadBuffer->setValue(stat.usdMem/100); // Memory::inuse
1595 
1596  uint32_t sum = 0;
1597  int cnt = 0;
1598 
1599  for (int i=0; i<40; i++)
1600  {
1601  if (stat.numConn[i]==1)
1602  {
1603  sum += stat.rateBytes[i];
1604  cnt++;
1605  }
1606  }
1607 
1608  fFadEvtConn->setValue(cnt);
1609 
1610  fFadEvtBufNew->setValue(stat.bufNew); // Incomplete in buffer (evtCtrl)
1611  fFadEvtBufEvt->setValue(stat.bufTot); // Complete events in buffer (max_inuse)
1612 
1613  fFadEvtCheck->setValue(stat.bufEvt); // Complete in buffer
1614  fFadEvtWrite->setValue(stat.bufWrite);
1615  fFadEvtProc->setValue(stat.bufProc);
1616 
1617  if (stat.deltaT==0)
1618  return;
1619 
1620  //fFadEthernetRateMin->setValue(min/stat.deltaT);
1621  //fFadEthernetRateMax->setValue(max/stat.deltaT);
1622  fFadEthernetRateTot->setValue(sum/stat.deltaT);
1623  fFadEthernetRateAvg->setValue(cnt==0 ? 0 : sum/cnt/stat.deltaT);
1624 
1625  fFadTransmission->setValue(1000*stat.rateNew/stat.deltaT);
1626  fFadWriteRate->setValue(1000*stat.rateWrite/stat.deltaT);
1627  }
int i
Definition: db_dim_client.c:21
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
const T & ref(uint32_t offset=0) const
Definition: DimData.h:35

+ Here is the call graph for this function:

+ Here is the caller graph for this function: