Skip to content
Snippets Groups Projects
Commit 260f138d authored by Yorhel's avatar Yorhel
Browse files

util.c: Use KiB instead of kiB (bug #3399279)

parent 76d242da
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ char *formatsize(const off_t from) {
float r = from;
char c = ' ';
if(r < 1000.0f) { }
else if(r < 1023e3f) { c = 'k'; r/=1024.0f; }
else if(r < 1023e3f) { c = 'K'; r/=1024.0f; }
else if(r < 1023e6f) { c = 'M'; r/=1048576.0f; }
else if(r < 1023e9f) { c = 'G'; r/=1073741824.0f; }
else { c = 'T'; r/=1099511627776.0f; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment