MCPcopy Index your code
hub / github.com/RsyncProject/rsync / set_current_file_index

Function set_current_file_index

progress.c:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void set_current_file_index(struct file_struct *file, int ndx)
148{
149 if (!file)
150 current_file_index = cur_flist->used + cur_flist->ndx_start - 1;
151 else if (need_unsorted_flist)
152 current_file_index = flist_find(cur_flist, file) + cur_flist->ndx_start;
153 else
154 current_file_index = ndx;
155 current_file_index -= cur_flist->flist_num;
156}
157
158void instant_progress(const char *fname)
159{

Callers 2

send_filesFunction · 0.85
recv_filesFunction · 0.85

Calls 1

flist_findFunction · 0.85

Tested by

no test coverage detected