Skip to content
Snippets Groups Projects
Commit b2999982 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add a new node list field

This patch adds a new node list field (ptags), showing the primary
instance tags.
parent 0f15cc76
No related branches found
No related tags found
No related merge requests found
......@@ -412,6 +412,8 @@ showField t field =
"mload" -> printf "%5.3f" uM
"dload" -> printf "%5.3f" uD
"nload" -> printf "%5.3f" uN
"ptags" -> intercalate "," . map (\(k, v) -> printf "%s=%d" k v) .
Map.toList $ pTags t
_ -> printf "<unknown field>"
where
T.DynUtil { T.cpuWeight = uC, T.memWeight = uM,
......@@ -444,6 +446,7 @@ showHeader field =
"mload" -> ("lMem", True)
"dload" -> ("lDsk", True)
"nload" -> ("lNet", True)
"ptags" -> ("PrimaryTags", False)
_ -> ("<unknown field>", False)
-- | String converter for the node list functionality.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment