diff options
| author | Stefan Boberg <[email protected]> | 2021-09-17 15:42:30 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-17 15:42:30 +0200 |
| commit | 0080e35ddb363dcac604cd77c1a07c98e4e75f4b (patch) | |
| tree | 4b869f37c9384ec0c6cf3e0c56c017e4fde694ab /zen/cmds/top.cpp | |
| parent | Added IsDebuggerPresent() query function to query whether a debugger is curre... (diff) | |
| download | archived-zen-0080e35ddb363dcac604cd77c1a07c98e4e75f4b.tar.xz archived-zen-0080e35ddb363dcac604cd77c1a07c98e4e75f4b.zip | |
clang-format
Diffstat (limited to 'zen/cmds/top.cpp')
| -rw-r--r-- | zen/cmds/top.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/zen/cmds/top.cpp b/zen/cmds/top.cpp index 3ff7edcda..3e3942d31 100644 --- a/zen/cmds/top.cpp +++ b/zen/cmds/top.cpp @@ -2,9 +2,9 @@ #include "top.h" +#include <zencore/fmtutils.h> #include <zencore/logging.h> #include <zencore/uid.h> -#include <zencore/fmtutils.h> #include <zenutil/zenserverprocess.h> #include <memory> @@ -32,7 +32,7 @@ TopCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) return 0; } - int n = 0; + int n = 0; const int HeaderPeriod = 20; for (;;) @@ -42,14 +42,15 @@ TopCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) ZEN_CONSOLE("{:>5} {:>6} {:>24}", "port", "pid", "session"); } - State.Snapshot([&](const ZenServerState::ZenServerEntry& Entry) { ZEN_CONSOLE("{:5} {:6} {:24}", Entry.ListenPort, Entry.Pid, Entry.GetSessionId()); }); + State.Snapshot([&](const ZenServerState::ZenServerEntry& Entry) { + ZEN_CONSOLE("{:5} {:6} {:24}", Entry.ListenPort, Entry.Pid, Entry.GetSessionId()); + }); zen::Sleep(1000); State.Sweep(); } - return 0; } @@ -79,4 +80,4 @@ PsCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) return 0; } -} +} // namespace zen |