Changeset 7e4e9b8


Ignore:
Timestamp:
08/05/14 19:04:19 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
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:
0862c20
Parents:
f9a70ca
Message:

Fixes ocache ring writebulk hit count.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/object_cache.c

    ra49a9eb r7e4e9b8  
    372372                        memmove(lc->cache, &lc->cache[lc->total - lc->used], sizeof(void *) * lc->used);
    373373
    374                 if (lc->used == lc->total)
     374                if (lc->used)
     375                        mem_hits.writebulk.miss += 1;
     376                else
    375377                        mem_hits.writebulk.ring_hit += 1;
    376                 else
    377                         mem_hits.writebulk.miss += 1;
    378378                mem_hits.write.ring_hit += lc->total - lc->used;
    379379        }
Note: See TracChangeset for help on using the changeset viewer.