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

Save the node status (with "downloading" action value)

More immediately. I wanted to debug the ETA value here and the action wasn't written to the node file here, but later.
parent c524eca2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2891 failed
......@@ -1030,12 +1030,14 @@ int sbbs_t::listfileinfo(uint dirnum, const char *filespec, long mode)
}
}
}
getnodedat(cfg.node_num,&thisnode,1);
action=NODE_DLNG;
t=now + gettimetodl(&cfg, f, cur_cps);
localtime_r(&t,&tm);
thisnode.aux=(tm.tm_hour*60)+tm.tm_min;
putnodedat(cfg.node_num,&thisnode); /* calculate ETA */
action = NODE_DLNG;
if(getnodedat(cfg.node_num,&thisnode,true) == 0) {
thisnode.action = action;
t=now + gettimetodl(&cfg, f, cur_cps);
localtime_r(&t,&tm);
thisnode.aux=(tm.tm_hour*60)+tm.tm_min;
putnodedat(cfg.node_num,&thisnode); /* calculate ETA */
}
start=time(NULL);
error=protocol(cfg.prot[i],XFER_DOWNLOAD,path,nulstr,false);
end=time(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment