summaryrefslogtreecommitdiff
path: root/items.c
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2009-03-04 10:50:47 +0100
committerTrond Norbye <Trond.Norbye@sun.com>2009-03-04 10:50:47 +0100
commit1fdfb7e91d29afbf3161bdbf3c7bcb4c8800c511 (patch)
treedf71de8ff74e3d69fb65721578e2ec0793f6eacd /items.c
parent69aa542709745e7360b0cd9a81d7a407567106c4 (diff)
downloadmemcached-1fdfb7e91d29afbf3161bdbf3c7bcb4c8800c511.tar.gz
Use threadlocal stats to count the commands
Diffstat (limited to 'items.c')
-rw-r--r--items.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/items.c b/items.c
index 5a7a12e..cbb4274 100644
--- a/items.c
+++ b/items.c
@@ -326,7 +326,7 @@ char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit
key_temp[it->nkey] = 0x00; /* terminate */
len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %lu s]\r\n",
key_temp, it->nbytes - 2,
- (unsigned long)it->exptime + stats.started);
+ (unsigned long)it->exptime + process_started);
if (bufcurr + len + 6 > memlimit) /* 6 is END\r\n\0 */
break;
strcpy(buffer + bufcurr, temp);