Round total memory to one decimal place.
This commit is contained in:
parent
bb0a573e88
commit
f430dbae1f
|
@ -131,7 +131,7 @@ auto GetSystemMemorySizeGB() -> double
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
auto TotalMemory() -> QString
|
||||
{
|
||||
double size = GetSystemMemorySizeGB();
|
||||
double size = qRound(GetSystemMemorySizeGB() * 10.0) / 10.0;
|
||||
return !qFuzzyCompare(size, -1.0) ? QStringLiteral("%1 GB").arg(size) : QStringLiteral("Unknown RAM");
|
||||
}
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in New Issue
Block a user