aboutsummaryrefslogtreecommitdiff
path: root/zen/cmds/top.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-09-16 21:19:14 +0200
committerPer Larsson <[email protected]>2021-09-16 21:19:14 +0200
commitcae9f697a13840eb87cb9f6fc32eb80e3a65b29a (patch)
tree721af351316d5a1fe2ac022fad2a4e9017b043ae /zen/cmds/top.cpp
parentzcache - minor cleanup. (diff)
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadarchived-zen-cae9f697a13840eb87cb9f6fc32eb80e3a65b29a.tar.xz
archived-zen-cae9f697a13840eb87cb9f6fc32eb80e3a65b29a.zip
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zen/cmds/top.cpp')
-rw-r--r--zen/cmds/top.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/zen/cmds/top.cpp b/zen/cmds/top.cpp
index 5bb11d0a0..b0d684705 100644
--- a/zen/cmds/top.cpp
+++ b/zen/cmds/top.cpp
@@ -23,7 +23,9 @@ TopCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
ZenServerState State;
if (!State.InitializeReadOnly())
{
- ZEN_INFO("no Zen state found");
+ ZEN_CONSOLE("no Zen state found");
+
+ return 0;
}
State.Snapshot([&](const ZenServerState::ZenServerEntry& Entry) { ZEN_INFO("Port {} : pid {}", Entry.ListenPort, Entry.Pid); });
@@ -47,10 +49,12 @@ PsCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
ZenServerState State;
if (!State.InitializeReadOnly())
{
- ZEN_INFO("no Zen state found");
+ ZEN_CONSOLE("no Zen state found");
+
+ return 0;
}
- State.Snapshot([&](const ZenServerState::ZenServerEntry& Entry) { ZEN_INFO("Port {} : pid {}", Entry.ListenPort, Entry.Pid); });
+ State.Snapshot([&](const ZenServerState::ZenServerEntry& Entry) { ZEN_CONSOLE("Port {} : pid {}", Entry.ListenPort, Entry.Pid); });
return 0;
}