fix: Change disk info path and fix disk info alarm value calculate.

This commit is contained in:
sunwen
2024-06-18 13:59:31 +08:00
parent 0aa477fb58
commit a33ad0f572
2 changed files with 3 additions and 3 deletions

View File

@@ -298,7 +298,7 @@ void GeneralForm::updateStorageSize()
{
mDiskIcon->setMaxValue(mDiskSize);
double aValue = JsonObject::Instance()->storageAlarmSize().toDouble();
mDiskIcon->setAlarmValue(aValue);
mDiskIcon->setAlarmValue(mDiskSize * aValue / 100);
mDiskSizeLabel->setText(tr("Total:\t%1G").arg(mDiskSize));
}
else