FACT++  1.0
void FactGui::UpdateGlobalStatus ( )
inlineprivate

Definition at line 445 of file FactGui.h.

References str.

446  {
447  ostringstream dns;
448  dns << (fDimVersion==0?"No connection":"Connection");
449  dns << " to DIM DNS (" << getenv("DIM_DNS_NODE") << ")";
450  dns << (fDimVersion==0?".":" established");
451 
452  ostringstream str;
453  str << "V" << fDimVersion/100 << 'r' << fDimVersion%100;
454 
455  LedColor_t led = kLedGreen;
456  if (fDimVersion>0)
457  {
458  dns << fixed << setprecision(1) << right;
459  if (fFreeSpaceLogger!=UINT64_MAX)
460  dns << "<pre> * Data logger: " << setw(7) << fFreeSpaceLogger*1e-7 << " GB</pre>";
461  if (fFreeSpaceData!=UINT64_MAX)
462  dns << "<pre> * Event Builder: " << setw(7) << fFreeSpaceData*1e-7 << " GB</pre>";
463 
464  if (fFreeSpaceLogger<500000000 || fFreeSpaceData<500000000)
465  led = kLedGreenWarn;
466  if (fFreeSpaceLogger<200000000 || fFreeSpaceData<200000000)
468 
469  if (led!=kLedGreen)
470  str << " (Disk space!)";
471  }
472 
473  fStatusDNSLabel->setToolTip(dns.str().c_str());
474 
475  SetLedColor(fStatusDNSLed, fDimVersion==0 ? kLedRed : led, Time());
476 
477  fStatusDNSLabel->setText(fDimVersion==0?"Offline":str.str().c_str());
478  }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
char str[80]
Definition: test_client.c:7
void SetLedColor(QPushButton *button, LedColor_t col, const Time &t)
Definition: FactGui.h:156
uint32_t fDimVersion
Definition: FactGui.h:443
LedColor_t
Definition: FactGui.h:139
uint64_t fFreeSpaceLogger
Definition: FactGui.h:493
uint64_t fFreeSpaceData
Definition: FactGui.h:656