Changeset 2370 for trunk/gsdl/src
- Timestamp:
- 2001-05-07T15:27:02+12:00 (23 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/collectoraction.cpp
r2368 r2370 1404 1404 text_t options = "-creator \"" + args["bc1contactemail"] + "\""; 1405 1405 options += " -title \"" + args["bc1fullname"] + "\""; 1406 options += " -about \"" + carriage_replace (args["bc1aboutdesc"] , 0) + "\"";1406 options += " -about \"" + carriage_replace (args["bc1aboutdesc"] + "_collectorextra_", 0) + "\""; 1407 1407 options += " -collectdir \"" + tmpdir + "\" "; 1408 1408 text_t optionfile = filename_cat (tmpdir, "mkcol.opt"); -
trunk/gsdl/src/recpt/pageaction.cpp
r2329 r2370 337 337 if (collectproto != NULL) { 338 338 cinfo = recpt->get_collectinfo_ptr (collectproto, arg_c, logout); 339 339 340 340 disp.setmacro ("numdocs", "Global", cinfo->numDocs); 341 341 unsigned long current_time = time(NULL); 342 342 unsigned long builddate = (current_time - cinfo->buildDate) / 86400; 343 343 disp.setmacro ("builddate", "Global", builddate); 344 344 345 text_t numbytes; 346 if ((cinfo->numBytes/(1024*1024)) > 1) { 347 numbytes = (text_t)(cinfo->numBytes/(1024*1024)) + " Mb"; 348 } else if ((cinfo->numBytes/1024) > 1) { 349 numbytes = (text_t)(cinfo->numBytes/1024) + " kb"; 350 } else { 351 numbytes = (text_t)cinfo->numBytes + " bytes"; 352 } 353 disp.setmacro("numbytes", "Global", numbytes); 345 354 } 346 355
Note:
See TracChangeset
for help on using the changeset viewer.