Skip to content

Commit

Permalink
fix 'age' stat for stats items
Browse files Browse the repository at this point in the history
credit goes to anton.yuzhaninov for the report and patch
  • Loading branch information
dormando committed Jan 12, 2012
1 parent a16ce58 commit 595572c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion items.c
Expand Up @@ -419,7 +419,7 @@ void do_item_stats(ADD_STAT add_stats, void *c) {
continue;
}
APPEND_NUM_FMT_STAT(fmt, i, "number", "%u", sizes[i]);
APPEND_NUM_FMT_STAT(fmt, i, "age", "%u", tails[i]->time);
APPEND_NUM_FMT_STAT(fmt, i, "age", "%u", current_time - tails[i]->time);
APPEND_NUM_FMT_STAT(fmt, i, "evicted",
"%llu", (unsigned long long)itemstats[i].evicted);
APPEND_NUM_FMT_STAT(fmt, i, "evicted_nonzero",
Expand Down

0 comments on commit 595572c

Please sign in to comment.