Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: batch mode #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: batch mode #51

wants to merge 1 commit into from

Conversation

penryu
Copy link
Contributor

@penryu penryu commented Jan 14, 2025

Bare minimum that addresses the behavior requested. Does not attempt to refactor main() (which may be warranted).

Keeps the field order, precision, and filtering from the primary functionality (via App).

Addresses #42

@penryu penryu force-pushed the master branch 2 times, most recently from bf155e9 to 2944e40 Compare January 14, 2025 12:30
@penryu
Copy link
Contributor Author

penryu commented Jan 15, 2025

Sample output (piped to cat to ensure stdout != tty):

FreeBSD

$ ztop -cd2 | cat
ops_r	r_s	ops_w	w_s	ops_d	d_s	name
7	72	2	27	0	0	zroot
5	25	0	2	0	0	zroot/ROOT
2	45	1	13	0	0	zroot/home
0	2	1	12	0	0	zroot/tmp
0	0	0	0	0	0	zroot/usr
0	0	0	0	0	0	zroot/var

Ubuntu Linux

$ ztop -f '(bunker|USERDATA)' | cat
ops_r	r_s	ops_w	w_s	ops_d	d_s	name
0	0	0	0	0	0	bunker
12	123	5	36	1	0	bunker/penryu
18	67	12	93	0	0	bunker/penryu/work
0	0	0	0	0	0	rpool/USERDATA/home_9ct0pz
0	0	0	0	0	0	rpool/USERDATA/root_9ct0pz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant