Display sizes >= 1TB in terse format as well.
This commit is contained in:
parent
59026a0edd
commit
701f72dae2
|
@ -610,7 +610,13 @@ _places_human_size_get(unsigned long long size)
|
|||
else
|
||||
{
|
||||
dsize /= 1024.0;
|
||||
suffix = "GB";
|
||||
if(dsize < 1024)
|
||||
suffix = "GB";
|
||||
else
|
||||
{
|
||||
dsize /= 1024.0;
|
||||
suffix = "TB";
|
||||
}
|
||||
}
|
||||
}
|
||||
snprintf(hum, sizeof(hum), "%.1f%s", dsize, suffix);
|
||||
|
|
Loading…
Reference in New Issue