Skip to content
Snippets Groups Projects
Commit 7d5a43c2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Since protocol() now calculates elapsed time, use that

parent 8b36382c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -235,7 +235,6 @@ bool sbbs_t::upload(uint dirnum)
char str[MAX_PATH+1];
char path[MAX_PATH+1];
char tmp[512];
time_t start,end;
uint i,j,k;
file_t f = {{}};
str_list_t dest_user_list = NULL;
......@@ -474,11 +473,10 @@ bool sbbs_t::upload(uint dirnum)
&& chk_ar(cfg.prot[i]->ar,&useron,&client))
break;
if(i<cfg.total_prots) {
start=time(NULL);
protocol(cfg.prot[i],XFER_UPLOAD,path,nulstr,true);
end=time(NULL);
time_t elapsed = 0;
protocol(cfg.prot[i],XFER_UPLOAD,path,nulstr,/* cd: */true, /* autohang: */true, &elapsed);
if(!(cfg.dir[dirnum]->misc&DIR_ULTIME)) /* Don't deduct upload time */
starttime+=end-start;
starttime+=elapsed;
result = uploadfile(&f);
autohangup();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment