aboutsummaryrefslogtreecommitdiff
path: root/zen/cmds/top.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-12-07 11:36:54 +0100
committerGitHub <[email protected]>2022-12-07 02:36:54 -0800
commitcce239c1d535e047d412ec2ad5ed28ff30d5c955 (patch)
tree59dc18c2c6860d40277f8067e7de6e2e73b003d7 /zen/cmds/top.cpp
parentoptimizations (#200) (diff)
downloadarchived-zen-cce239c1d535e047d412ec2ad5ed28ff30d5c955.tar.xz
archived-zen-cce239c1d535e047d412ec2ad5ed28ff30d5c955.zip
Zen cmd fixes (#201)
* updated drop command to support namespaces * fixed hash command error message * fix output of status (and top) command * Use ZEN_CONSOLE for output in zen commands * changelog
Diffstat (limited to 'zen/cmds/top.cpp')
-rw-r--r--zen/cmds/top.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/zen/cmds/top.cpp b/zen/cmds/top.cpp
index 21e4dc60e..4fe8c9cdf 100644
--- a/zen/cmds/top.cpp
+++ b/zen/cmds/top.cpp
@@ -43,7 +43,9 @@ TopCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
}
State.Snapshot([&](const ZenServerState::ZenServerEntry& Entry) {
- ZEN_CONSOLE("{:5} {:6} {:24}", Entry.EffectiveListenPort, Entry.Pid, Entry.GetSessionId());
+ StringBuilder<25> SessionStringBuilder;
+ Entry.GetSessionId().ToString(SessionStringBuilder);
+ ZEN_CONSOLE("{:>5} {:>6} {:>24}", Entry.EffectiveListenPort, Entry.Pid, SessionStringBuilder.ToString());
});
zen::Sleep(1000);