Changeset 2370 for trunk/gsdl/src/recpt/pageaction.cpp
- Timestamp:
- 2001-05-07T15:27:02+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.