Skip to content

Commit

Permalink
commit parent inode changes - diretory level counter
Browse files Browse the repository at this point in the history
  • Loading branch information
fizwit committed Nov 15, 2013
1 parent c206aff commit 5c4e10e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified pwalk
Binary file not shown.
7 changes: 4 additions & 3 deletions pwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ printHelp( ) {
fprintf( stderr, " --NoSnap Ignore directories with name .snapshot\n");
fprintf( stderr, "output format: CSV\n" );
fprintf( stderr, "fields : inode,parent-inode,directory-depth,\"filename\",\"fileExtension\",UID,GID,st_size,st_blocks\"," );
fprintf( stderr, "\"st_mode\",atime,mtime,ctime,count(files),sum(size)n");
fprintf( stderr, "\"st_mode\",atime,mtime,ctime,count(files),sum(size)\n");
}

/*
Expand Down Expand Up @@ -326,8 +326,8 @@ main( int argc, char* argv[] )
printHelp( );
exit( EXIT_FAILURE );
}
argc--; argv++;
while ( argc > 1 ) {
argc--; argv++;
while ( argc > 0 && *argv[0] == '-' ) {
if ( !strcmp( *argv, "--NoSnap" ) )
SNAPSHOT = 1;
if ( !strcmp( *argv, "--help" ) )
Expand All @@ -336,6 +336,7 @@ main( int argc, char* argv[] )
printVersion( );
argc--; argv++;
}
if ( argc == 0 ) exit ( 0 );
for ( i=0; i<MAXTHRDS; i++ ) {
tdslot[i].THRDid = -1;
if ( (error = pthread_attr_init( &tdslot[i].tattr )) )
Expand Down

0 comments on commit 5c4e10e

Please sign in to comment.