497 const bool connected = d.
size()!=0;
499 fLoggerET->setEnabled(connected);
500 fLoggerRate->setEnabled(connected);
501 fLoggerWritten->setEnabled(connected);
502 fLoggerFreeSpace->setEnabled(connected);
503 fLoggerSpaceLeft->setEnabled(connected);
511 const uint64_t *vals = d.
ptr<uint64_t>();
513 const size_t space = vals[0];
514 const size_t written = vals[1];
515 const size_t rate = float(vals[2])/vals[3];
520 fLoggerFreeSpace->setSuffix(
" MB");
521 fLoggerFreeSpace->setDecimals(0);
522 fLoggerFreeSpace->setValue(space*1e-6);
526 fLoggerFreeSpace->setSuffix(
" GB");
527 fLoggerFreeSpace->setDecimals(2);
528 fLoggerFreeSpace->setValue(space*1e-9);
532 fLoggerFreeSpace->setSuffix(
" GB");
533 fLoggerFreeSpace->setDecimals(1);
534 fLoggerFreeSpace->setValue(space*1e-9);
536 if (space>=100000000)
538 fLoggerFreeSpace->setSuffix(
" GB");
539 fLoggerFreeSpace->setDecimals(0);
540 fLoggerFreeSpace->setValue(space*1e-9);
543 fLoggerET->setTime(QTime().addSecs(rate>0?space/rate:0));
544 fLoggerRate->setValue(rate*1e-3);
545 fLoggerWritten->setValue(written*1e-6);
547 fLoggerRate->setSuffix(
" kB/s");
548 fLoggerRate->setDecimals(2);
549 fLoggerRate->setValue(rate);
552 fLoggerRate->setSuffix(
" kB/s");
553 fLoggerRate->setDecimals(1);
554 fLoggerRate->setValue(rate);
558 fLoggerRate->setSuffix(
" kB/s");
559 fLoggerRate->setDecimals(0);
560 fLoggerRate->setValue(rate);
564 fLoggerRate->setSuffix(
" MB/s");
565 fLoggerRate->setDecimals(2);
566 fLoggerRate->setValue(rate*1e-3);
570 fLoggerRate->setSuffix(
" MB/s");
571 fLoggerRate->setDecimals(1);
572 fLoggerRate->setValue(rate*1e-3);
576 fLoggerRate->setSuffix(
" MB/s");
577 fLoggerRate->setDecimals(0);
578 fLoggerRate->setValue(rate*1e-3);
581 if (space/1000000>static_cast<size_t>(fLoggerSpaceLeft->maximum()))
582 fLoggerSpaceLeft->setValue(fLoggerSpaceLeft->maximum());
584 fLoggerSpaceLeft->setValue(space/1000000);
void UpdateGlobalStatus()
uint64_t fFreeSpaceLogger
const T * ptr(uint32_t offset=0) const