projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Let the syslet ioengine register check supportability
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index 9810e419852330f7353240884c62b0f9107ddd2a..f9c6985338d998095fd35a229d8b0be5ed533760 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-21,8
+21,8
@@
static char *num2str(unsigned long num, int maxlen, int base)
* could be passed in for 10^3 base, but every caller expects
* 2^10 base right now.
*/
* could be passed in for 10^3 base, but every caller expects
* 2^10 base right now.
*/
- const int thousand = 1024;
- char postfix[] = { 'K', 'M', 'G', 'P' };
+ const
unsigned
int thousand = 1024;
+ char postfix[] = { 'K', 'M', 'G', 'P'
, 'E'
};
char *buf;
int i;
char *buf;
int i;
@@
-47,7
+47,7
@@
static char *num2str(unsigned long num, int maxlen, int base)
num /= thousand;
num += carry;
i++;
num /= thousand;
num += carry;
i++;
- } while (i <=
4
);
+ } while (i <=
5
);
return buf;
}
return buf;
}