Skip to content
Snippets Groups Projects
Commit cd17e162 authored by rswindell's avatar rswindell
Browse files

BulkUploadDescPrompt now displays file size in kilobytes rather than bytes.

parent 7a89ea0c
No related branches found
No related tags found
No related merge requests found
...@@ -310,7 +310,7 @@ ...@@ -310,7 +310,7 @@
"\r\nwhNot enough time left to transfer.\r\n" 263 NotEnoughTimeToDl "\r\nwhNot enough time left to transfer.\r\n" 263 NotEnoughTimeToDl
"\r\nProtocol, ~Batch, ~Quit, or [Next]: " 264 ProtocolBatchQuitOrNext "\r\nProtocol, ~Batch, ~Quit, or [Next]: " 264 ProtocolBatchQuitOrNext
"\r\nBulk Upload %s %s Directory:\r\n" 265 BulkUpload "\r\nBulk Upload %s %s Directory:\r\n" 265 BulkUpload
"_yh%s %7ld:" 266 BulkUploadDescPrompt "_yh%s %6ldk:" 266 BulkUploadDescPrompt
"\r\nrhiNo files in batch queue.n"\ 267 NoFilesInBatchQueue "\r\nrhiNo files in batch queue.n"\ 267 NoFilesInBatchQueue
"\r\n\r\nmUse hDnm or hUnm to add files to the queue.\r\n" "\r\n\r\nmUse hDnm or hUnm to add files to the queue.\r\n"
"_\r\nyhBatch: n" 268 BatchMenuPrompt "_\r\nyhBatch: n" 268 BatchMenuPrompt
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
/****************************************************************************/ /****************************************************************************/
bool sbbs_t::uploadfile(file_t *f) bool sbbs_t::uploadfile(file_t *f)
{ {
char* p;
char path[MAX_PATH+1]; char path[MAX_PATH+1];
char str[MAX_PATH+1],fname[25]; char str[MAX_PATH+1],fname[25];
char ext[F_EXBSIZE+1]; char ext[F_EXBSIZE+1];
...@@ -144,7 +145,8 @@ bool sbbs_t::uploadfile(file_t *f) ...@@ -144,7 +145,8 @@ bool sbbs_t::uploadfile(file_t *f)
sprintf(str,"%sFILE_ID.DIZ",cfg.temp_dir); sprintf(str,"%sFILE_ID.DIZ",cfg.temp_dir);
if(fexistcase(str)) if(fexistcase(str))
remove(str); remove(str);
external(cmdstr(cfg.fextr[i]->cmd,path,"FILE_ID.DIZ",NULL),EX_OUTL); p=cmdstr(cfg.fextr[i]->cmd,path,"FILE_ID.DIZ",NULL);
external(p,EX_OUTL);
if(!fexistcase(str)) { if(!fexistcase(str)) {
sprintf(str,"%sDESC.SDI",cfg.temp_dir); sprintf(str,"%sDESC.SDI",cfg.temp_dir);
if(fexistcase(str)) if(fexistcase(str))
...@@ -530,7 +532,7 @@ bool sbbs_t::bulkupload(uint dirnum) ...@@ -530,7 +532,7 @@ bool sbbs_t::bulkupload(uint dirnum)
if(findfile(&cfg,f.dir,str)==0) { if(findfile(&cfg,f.dir,str)==0) {
strcpy(f.name,str); strcpy(f.name,str);
f.cdt=flength(spath); f.cdt=flength(spath);
bprintf(text[BulkUploadDescPrompt],f.name,f.cdt); bprintf(text[BulkUploadDescPrompt],f.name,f.cdt/1024);
getstr(f.desc,LEN_FDESC,K_LINE); getstr(f.desc,LEN_FDESC,K_LINE);
if(sys_status&SS_ABORT) if(sys_status&SS_ABORT)
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment