Display sizes >= 1TB in terse format as well.

This commit is contained in:
Igor Murzov 2014-07-04 02:07:22 +04:00
parent 59026a0edd
commit 701f72dae2
1 changed files with 7 additions and 1 deletions

View File

@ -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);