[thin_ls] tweak enum names
This commit is contained in:
parent
070b7e6fe1
commit
f6f38fbc1f
@ -152,8 +152,8 @@ namespace {
|
|||||||
enum output_field {
|
enum output_field {
|
||||||
DEV_ID,
|
DEV_ID,
|
||||||
MAPPED_BLOCKS,
|
MAPPED_BLOCKS,
|
||||||
MAPPED_EXCL_BLOCKS,
|
EXCLUSIVE_BLOCKS,
|
||||||
MAPPED_SHARED_BLOCKS,
|
SHARED_BLOCKS,
|
||||||
|
|
||||||
MAPPED_SECTORS,
|
MAPPED_SECTORS,
|
||||||
EXCLUSIVE_SECTORS,
|
EXCLUSIVE_SECTORS,
|
||||||
@ -162,6 +162,7 @@ namespace {
|
|||||||
MAPPED,
|
MAPPED,
|
||||||
EXCLUSIVE,
|
EXCLUSIVE,
|
||||||
SHARED,
|
SHARED,
|
||||||
|
|
||||||
TRANSACTION_ID,
|
TRANSACTION_ID,
|
||||||
CREATION_TIME,
|
CREATION_TIME,
|
||||||
SNAPSHOT_TIME // make sure this is always the last one
|
SNAPSHOT_TIME // make sure this is always the last one
|
||||||
@ -170,8 +171,8 @@ namespace {
|
|||||||
char const *field_names[] = {
|
char const *field_names[] = {
|
||||||
"DEV",
|
"DEV",
|
||||||
"MAPPED_BLOCKS",
|
"MAPPED_BLOCKS",
|
||||||
"MAPPED_EXCL_BLOCKS",
|
"EXCLUSIVE_BLOCKS",
|
||||||
"MAPPED_SHARED_BLOCKS",
|
"SHARED_BLOCKS",
|
||||||
|
|
||||||
"MAPPED_SECTORS",
|
"MAPPED_SECTORS",
|
||||||
"EXCLUSIVE_SECTORS",
|
"EXCLUSIVE_SECTORS",
|
||||||
@ -379,13 +380,13 @@ namespace {
|
|||||||
grid.field(it->second.mapped_blocks_);
|
grid.field(it->second.mapped_blocks_);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MAPPED_EXCL_BLOCKS:
|
case EXCLUSIVE_BLOCKS:
|
||||||
if (!exclusive)
|
if (!exclusive)
|
||||||
exclusive = count_exclusives(md, mappings, it->first);
|
exclusive = count_exclusives(md, mappings, it->first);
|
||||||
grid.field(*exclusive);
|
grid.field(*exclusive);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MAPPED_SHARED_BLOCKS:
|
case SHARED_BLOCKS:
|
||||||
if (!exclusive)
|
if (!exclusive)
|
||||||
exclusive = count_exclusives(md, mappings, it->first);
|
exclusive = count_exclusives(md, mappings, it->first);
|
||||||
grid.field(it->second.mapped_blocks_ - *exclusive);
|
grid.field(it->second.mapped_blocks_ - *exclusive);
|
||||||
|
Loading…
Reference in New Issue
Block a user