casadm: occupancy per ioclass

Enable new ioclass config format with float allocation values

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2020-11-17 09:47:55 -05:00
parent 93a6a1670f
commit c93d1f73ef
2 changed files with 39 additions and 23 deletions

View File

@@ -403,9 +403,7 @@ static void print_stats_ioclass_conf(const struct kcas_io_class* io_class,
print_kv_pair(outfile, "Eviction priority", "%d",
io_class->info.priority);
}
print_kv_pair(outfile, "Selective allocation", "%s",
io_class->info.cache_mode != ocf_cache_mode_pt ?
"Yes" : "No");
print_kv_pair(outfile, "Max size", "%u%%", io_class->info.max_size);
}