Skip to content

Commit

Permalink
force recording while command is running
Browse files Browse the repository at this point in the history
  • Loading branch information
leventcz committed May 26, 2024
1 parent fafc3b7 commit 51c4a71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Commands/TopCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 51c4a71

Please sign in to comment.