servlib/bundling/BundleDaemon.cc
changeset 27 28b7fb13e35d
parent 26 22859a6c3113
child 28 406d4f7eb00d
equal deleted inserted replaced
26:22859a6c3113 27:28b7fb13e35d
   463 
   463 
   464 }
   464 }
   465 bool
   465 bool
   466 BundleDaemon::add_bundle_to_bpq_cache(Bundle* bundle, bool add_to_store)
   466 BundleDaemon::add_bundle_to_bpq_cache(Bundle* bundle, bool add_to_store)
   467 {
   467 {
   468     //const u_int64_t max_cache_size = 1073741824 * 15; // 15GB
   468     const u_int64_t max_cache_size = 1073741824 * 15; // 15GB
   469     const u_int64_t max_cache_size = 5254027 * 3; 
       
   470 
   469 
   471     log_debug_p("/dtn/daemon/bpq","add_bundle_to_bpq_cache: *%p", bundle);
   470     log_debug_p("/dtn/daemon/bpq","add_bundle_to_bpq_cache: *%p", bundle);
   472 
   471 
   473     u_int64_t bundle_size = bundle->payload().length();
   472     u_int64_t bundle_size = bundle->payload().length();
   474     u_int64_t cache_size = 0;
   473     u_int64_t cache_size = 0;