mirror of https://github.com/nicolargo/glances.git
Format/Lint code
This commit is contained in:
parent
1e25b4b130
commit
62e0b784bd
|
|
@ -67,14 +67,16 @@ def convert_attribute_to_dict(attr):
|
|||
|
||||
|
||||
# Keys for attributes that should be formatted with auto_unit (large byte values)
|
||||
LARGE_VALUE_KEYS = frozenset([
|
||||
"bytesWritten",
|
||||
"bytesRead",
|
||||
"dataUnitsRead",
|
||||
"dataUnitsWritten",
|
||||
"hostReadCommands",
|
||||
"hostWriteCommands",
|
||||
])
|
||||
LARGE_VALUE_KEYS = frozenset(
|
||||
[
|
||||
"bytesWritten",
|
||||
"bytesRead",
|
||||
"dataUnitsRead",
|
||||
"dataUnitsWritten",
|
||||
"hostReadCommands",
|
||||
"hostWriteCommands",
|
||||
]
|
||||
)
|
||||
|
||||
NVME_ATTRIBUTE_LABELS = {
|
||||
"criticalWarning": "Number of critical warnings",
|
||||
|
|
|
|||
Loading…
Reference in New Issue