Commit 03a83021 authored by Zara Saldanha's avatar Zara Saldanha

Update traverse.c

parent dfdb422e
......@@ -58,7 +58,7 @@ void process(char *root)
initq(&nameq);
enqueue(root,&nameq);
time_t latest = 0;
char newest[MAXLENGTH] = "file_stat.c";
char newest[MAXLENGTH] = "traverse.c";
char oldest[MAXLENGTH];
struct stat dStat;
while (true != queue_empty(nameq)) {
......@@ -118,7 +118,6 @@ void process(char *root)
} // while
}
}
newest = 'file_stat.c';
avg = (float)sum /(float)numOfFiles;
printf(" a total of %d files were counted\n",numOfFiles);
printf(" a total of %d directories were counted\n",num_dir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment