Parsing: make it able to print 1.00 GB

This commit is contained in:
李通洲
2023-03-25 12:53:08 +08:00
parent ccb0f853db
commit 945b5f1b15
+1 -1
View File
@@ -65,7 +65,7 @@ static void parseSize(FFstrbuf* result, uint64_t bytes, uint32_t base, uint8_t p
long double size = (long double) bytes;
uint8_t counter = 0;
while(size > base && counter < prefixesLength - 1)
while(size >= base && counter < prefixesLength - 1)
{
size /= base;
counter++;