Blame SOURCES/tree-size-field-len.patch
|
|
257807 |
tree.c | 4 ++--
|
|
|
257807 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
257807 |
|
|
|
257807 |
diff --git a/tree.c b/tree.c
|
|
|
257807 |
index 3b4a263..11072ce 100644
|
|
|
257807 |
--- a/tree.c
|
|
|
257807 |
+++ b/tree.c
|
|
|
257807 |
@@ -1280,8 +1280,8 @@ int psize(char *buf, off_t size)
|
|
|
257807 |
|
|
|
257807 |
if (hflag || siflag) {
|
|
|
257807 |
for (idx=size<usize?0:1; size >= (usize*usize); idx++,size/=usize);
|
|
|
257807 |
- if (!idx) return sprintf(buf, " %4d", (int)size);
|
|
|
257807 |
- else return sprintf(buf, ((size/usize) >= 10)? " %3.0f%c" : " %3.1f%c" , (float)size/(float)usize,unit[idx]);
|
|
|
257807 |
+ if (!idx) return sprintf(buf, " %5d", (int)size);
|
|
|
257807 |
+ else return sprintf(buf, ((size/usize) >= 10)? " %4.0f%c" : " %4.1f%c" , (float)size/(float)usize,unit[idx]);
|
|
|
257807 |
} else return sprintf(buf, sizeof(off_t) == sizeof(long long)? " %11lld" : " %9lld", (long long int)size);
|
|
|
257807 |
}
|
|
|
257807 |
|