filesize again
This commit is contained in:
parent
fb108f4efa
commit
c1e6dc2f7c
|
@ -56,6 +56,6 @@ int main (int argc, char** argv) {
|
|||
char buf[PATH_MAX + 1];
|
||||
char *dirpath = (argc > 1) ? realpath(argv[1], buf) : realpath(".", buf);
|
||||
listdir(dirpath);
|
||||
printf("\ntotals\nfile count: %d\tdir count: %d\tsymbolic link count: %d\nspace used: %lu blocks\n\t%lu bytes(blocks*512)\n\t%lu bytes\n\n", file_cnt, dir_cnt, link_cnt, space_used, space_used * 512, space_used_bytes);
|
||||
printf("\ntotals\nfile count: %d\tdir count: %d\tsymbolic link count: %d\nspace used: %lu blocks\n\t%lu bytes(blocks*512)\n\t%lu bytes(size on disk)\n\n", file_cnt, dir_cnt, link_cnt, space_used, space_used * 512, space_used_bytes);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue