-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
sighandler() should take 2 arguments #2180
Conversation
Stopping arcstat.py with ^C always ends up with error: TypeError: sighandler() takes no arguments (2 given) Signed-off-by: Isaac Huang <he.huang@intel.com> Issue #2179
Now arcstat.py prints one header every hdr_intr (20 by default) lines. It'd be nice if hdr_intr is set according to terminal window size, i.e. one header per screenful of outputs. Signed-off-by: Isaac Huang <he.huang@intel.com> Issue #2181
@aarcane @prakashsurya could you please review these proposed changes. |
why is there so much more (the new function and stuff)? |
@prometheanfire @thegreatgazoo sent two patches, but made the pull request appear to only have one. I will not comment on the specifics of the code since I am not fluent in python. |
@prometheanfire It determines the total number of lines in your terminal so that value may be used as the default instead of 20. That makes the behavior consistent with tools like |
@prometheanfire when I was trying to make a pull request for the 2nd commit, it automatically got into this pull request. I'm still new to github so I must have made some mistake. |
@thegreatgazoo github tracks the branch you do the pull request from (looks like your master branch). I would create a branch, for each feature you want to submit and then submit a pull request for each branch. In this case one to fix the bug and one to add support for the new function. |
@thegreatgazoo Thanks for splitting this up. Just for future reference the only reasons you might want to include multiple patches in a single pull requests are:
|
also to keep in mind, a patch should be able to be applied atomicly without breaking things. patch 1 of a 5 part patch series should be able to be applied alone without breaking things (maybe not only patch 2, since there may be a dep on patch 1 from patch 2, but you get the idea I hope). |
Stopping arcstat.py with ^C always ends up with error:
TypeError: sighandler() takes no arguments (2 given)
Signed-off-by: Isaac Huang he.huang@intel.com
Issue #2179