Index: sources/view/settings/VHDUsageInfo.cpp =================================================================== diff -u -r2344b221623f3ce2d18f91a255ec6a0649c9db33 -r8b6ec3036d830a6e60eea0fa9366389f7cc6378a --- sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 2344b221623f3ce2d18f91a255ec6a0649c9db33) +++ sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 8b6ec3036d830a6e60eea0fa9366389f7cc6378a) @@ -34,10 +34,14 @@ */ void View::VHDUsageInfo::onActionReceive(const HDUsageInfoResponseData &vData) { - QString timeFormatted = QString("%1").arg(vData.mTotalTxHours); + // Format the time in hours to be only one decimal point. + // In .arg(), the second field is the field width + // The third field is the number notation so 'f' in this case means no scientific notation + // The fourth field is the number of decimal places which 1 decimal is needed here. + QString timeFormatted = QString("%1").arg(vData.mTotalTxHours, 0, 'f', 1); totalTxHours(timeFormatted); - timeFormatted = QString("%1").arg(vData.mTotalTxHoursSinceLastService); + timeFormatted = QString("%1").arg(vData.mTotalTxHoursSinceLastService, 0, 'f', 1); totalTxHoursSinceLastService(timeFormatted); epochOfStartOfLastTx (Format::fromEpoch(vData.mEpochOfStartOfLastTx, _dateFormat));