Skip to content

Commit 10c0cbb

Browse files
committed
nvme: add to handle plugin for nvme top command
This is to monitor other plugin commands. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent db5b4d5 commit 10c0cbb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nvme.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10976,7 +10976,11 @@ static int top(int argc, char **argv, struct command *acmd,
1097610976
err = system("clear");
1097710977
if (err)
1097810978
break;
10979-
err = show_topology_cmd(argc, argv, acmd, plugin);
10979+
if (argc > 2)
10980+
err = handle_plugin(argc - 1, &argv[1],
10981+
nvme.extensions);
10982+
else
10983+
err = show_topology_cmd(argc, argv, acmd, plugin);
1098010984
if (err)
1098110985
break;
1098210986
err = pselect(0, NULL, NULL, NULL, &ts, NULL);

0 commit comments

Comments
 (0)