diff options
| author | Stefan Boberg <[email protected]> | 2021-09-17 23:07:26 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-17 23:07:26 +0200 |
| commit | f1992cb73b7e7ff5a20740c0085ce8cb5b72d01f (patch) | |
| tree | 05058a466f61e3373b2bd4e59393542e0b134156 | |
| parent | Added better handling for read-only mode (diff) | |
| download | zen-f1992cb73b7e7ff5a20740c0085ce8cb5b72d01f.tar.xz zen-f1992cb73b7e7ff5a20740c0085ce8cb5b72d01f.zip | |
Don't sweep instance table in read-only mode
| -rw-r--r-- | zen/cmds/top.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zen/cmds/top.cpp b/zen/cmds/top.cpp index 3e3942d31..315d8cb38 100644 --- a/zen/cmds/top.cpp +++ b/zen/cmds/top.cpp @@ -48,7 +48,10 @@ TopCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) zen::Sleep(1000); - State.Sweep(); + if (!State.IsReadOnly()) + { + State.Sweep(); + } } return 0; |