Skip to content

Commit

Permalink
Added root element to vmstat
Browse files Browse the repository at this point in the history
  • Loading branch information
bramton committed Jul 17, 2024
1 parent f205561 commit 025c0ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr.bin/vmstat/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ main(int argc, char *argv[])
argv += optind;

xo_set_version(VMSTAT_XO_VERSION);
xo_open_container("vmstat");
if (!hflag)
xo_set_options(NULL, "no-humanize");
if (todo == 0)
Expand Down Expand Up @@ -383,6 +384,7 @@ main(int argc, char *argv[])
dointr(interval, reps);
if (todo & VMSTAT)
dovmstat(interval, reps);
xo_close_container("vmstat");
xo_finish();
exit(0);
}

Check warning on line 390 in usr.bin/vmstat/vmstat.c

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
Expand Down

0 comments on commit 025c0ef

Please sign in to comment.