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) ...@@ -235,7 +235,6 @@ bool sbbs_t::upload(uint dirnum)
char str[MAX_PATH+1]; char str[MAX_PATH+1];
char path[MAX_PATH+1]; char path[MAX_PATH+1];
char tmp[512]; char tmp[512];
time_t start,end;
uint i,j,k; uint i,j,k;
file_t f = {{}}; file_t f = {{}};
str_list_t dest_user_list = NULL; str_list_t dest_user_list = NULL;
...@@ -474,11 +473,10 @@ bool sbbs_t::upload(uint dirnum) ...@@ -474,11 +473,10 @@ bool sbbs_t::upload(uint dirnum)
&& chk_ar(cfg.prot[i]->ar,&useron,&client)) && chk_ar(cfg.prot[i]->ar,&useron,&client))
break; break;
if(i<cfg.total_prots) { if(i<cfg.total_prots) {
start=time(NULL); time_t elapsed = 0;
protocol(cfg.prot[i],XFER_UPLOAD,path,nulstr,true); protocol(cfg.prot[i],XFER_UPLOAD,path,nulstr,/* cd: */true, /* autohang: */true, &elapsed);
end=time(NULL);
if(!(cfg.dir[dirnum]->misc&DIR_ULTIME)) /* Don't deduct upload time */ if(!(cfg.dir[dirnum]->misc&DIR_ULTIME)) /* Don't deduct upload time */
starttime+=end-start; starttime+=elapsed;
result = uploadfile(&f); result = uploadfile(&f);
autohangup(); autohangup();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment