From 51c4a719c68fd4faec4aea1fbbd9e1e84dcebc2e Mon Sep 17 00:00:00 2001 From: leventcorapsiz Date: Sun, 26 May 2024 16:51:03 +0300 Subject: [PATCH] force recording while command is running --- src/Commands/TopCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Commands/TopCommand.php b/src/Commands/TopCommand.php index 60f4178..7775185 100644 --- a/src/Commands/TopCommand.php +++ b/src/Commands/TopCommand.php @@ -32,12 +32,14 @@ public function handle(GuiBuilder $guiBuilder): void $guiBuilder ->exitAlternateScreen() ->showCursor(); - exit(); + exit(1); }); } private function feed(GuiBuilder $guiBuilder): void { + Top::startRecording(); + $guiBuilder ->setRequestSummary(Top::http()) ->setDatabaseSummary(Top::database())