Index: sources/view/settings/VHDUsageInfo.cpp =================================================================== diff -u -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 -r4c975736fbcc57e7e401001440b67b1317849c7e --- sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) +++ sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 4c975736fbcc57e7e401001440b67b1317849c7e) @@ -33,20 +33,13 @@ */ void View::VHDUsageInfo::onActionReceive(const HDUsageInfoResponseData &vData) { - - int hours = vData.mTotalTxHours; - int minutes = (vData.mTotalTxHours - hours) * 60; - QString timeFormatted = QString("%1:%2").arg(hours).arg(minutes); + QString timeFormatted = QString("%1").arg(vData.mTotalTxHours); totalTxHours(timeFormatted); - hours = vData.mTotalTxHoursSinceLastService; - minutes = (vData.mTotalTxHoursSinceLastService - hours) * 60; - timeFormatted = QString("%1:%2").arg(hours).arg(minutes); + timeFormatted = QString("%1").arg(vData.mTotalTxHoursSinceLastService); totalTxHoursSinceLastService(timeFormatted); + epochOfStartOfLastTx (Format::fromEpoch(vData.mEpochOfStartOfLastTx, _LastTreatmentDateFormat)); - epochOfStartOfLastTx (vData.mEpochOfStartOfLastTx ? QString("%1").arg(vData.mEpochOfStartOfLastTx ) : "" ); - epochOfLastRecordReset (vData.mEpochOfLastRecordReset ? QString("%1").arg(vData.mEpochOfLastRecordReset) : "" ); - // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the Previous values before being set. *** adjustment ( true );