Changeset 957a72a for lib/data-struct
- Timestamp:
- 08/18/14 02:37:07 (8 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 5b4d121
- Parents:
- 0862c20
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/data-struct/object_cache.c
r7e4e9b8 r957a72a 271 271 lc->used = libtrace_ringbuffer_sread_bulk(rb, lc->cache, lc->total, min_nb_buffers - i); 272 272 else 273 lc->used = 0;273 lc->used = libtrace_ringbuffer_sread_bulk(rb, lc->cache, lc->total, 0); 274 274 275 275 if (lc->used == lc->total) … … 367 367 368 368 // Make sure we still meet the minimum requirement 369 lc->used = lc->total - libtrace_ringbuffer_swrite_bulk(rb, lc->cache, lc->total, min_nb_buffers - i); 369 if (i < min_nb_buffers) 370 lc->used = lc->total - libtrace_ringbuffer_swrite_bulk(rb, lc->cache, lc->total, min_nb_buffers - i); 371 else 372 lc->used = lc->total - libtrace_ringbuffer_swrite_bulk(rb, lc->cache, lc->total, 0); 373 370 374 // Re originise fulls to the front 371 375 if (lc->used)
Note: See TracChangeset
for help on using the changeset viewer.