Skip to content

Commit

Permalink
Merge pull request #319 from mmichal10/fix-ioclass-stats-for-cache
Browse files Browse the repository at this point in the history
Reset initial ioclass stats value when retrieving.
  • Loading branch information
arutk committed Oct 29, 2019
2 parents e6bdc2d + b61843d commit d8a01e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocf_stats_builder.c
Expand Up @@ -289,7 +289,7 @@ int ocf_stats_collect_part_cache(ocf_cache_t cache, ocf_part_id_t part_id,
struct ocf_stats_blocks *blocks)
{
struct io_class_stats_context ctx;
struct ocf_stats_io_class s;
struct ocf_stats_io_class s = {};
int result = 0;

OCF_CHECK_NULL(cache);
Expand Down

0 comments on commit d8a01e3

Please sign in to comment.