extern struct stats stats;
extern struct file_list *cur_flist, *first_flist;
+#define FILECNT_LOOKAHEAD 1000
+
/**
* @file
*
while (1) {
if (inc_recurse)
- send_extra_file_list(f_out, 1000);
+ send_extra_file_list(f_out, FILECNT_LOOKAHEAD);
/* This call also sets cur_flist. */
ndx = read_ndx_and_attrs(f_in, f_out, &iflags,
continue;
}
+ if (inc_recurse)
+ send_extra_file_list(f_out, FILECNT_LOOKAHEAD);
+
file = cur_flist->files[ndx - cur_flist->ndx_start];
if (F_ROOTDIR(file)) {
path = F_ROOTDIR(file);