-
Notifications
You must be signed in to change notification settings - Fork 34
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
enhanced monitor, process commands #261
enhanced monitor, process commands #261
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Process changes look good and work as expected 👍
When I tried testing the Monitor changes, the paging didn't appear to work. It would insert new lines above the window height and the visible portion of the window didn't change. It appeared to be appending the help text after some of the lines as well.
@snake14 unfortunately, i'm not running matomo in a Windows environment, so i don't have a chance to see the "Monitor" output in a Windows console like PowerShell or CMD.. 🙏 ✌️ |
@haristku I'm running Ubuntu 22.04 and using the stock terminal. |
what if you add 3 rows per page args:
what's the result? is the paging working or still not? the default rows per page is 16, if we have 16 workers it means we only have 1 page, so the paging feature won't work, but if we set the workers to 34, it means we have 3 pages and the paging feature will work, and we can use the right, left, up, down arrows to navigate through the page. the total pages is displayed at the bottom and the help description also included in:
we already split the PR into smaller parts, in this PR we cannot have workers higher than 16, therefore we can use i still want to update this PR to remove the use of PCNTL completely... i'll update it tomorrow... ty. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the suggestion of changing the page size. That helped me test some variations. Although, I tested without setting a specific page size again and it worked correctly. I'm not sure what the issue was last time I tested. I'm approving the PR 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay to me, left 1 comment.
Co-authored-by: Altamash Shaikh <[email protected]>
…, coz cursor hide and show mechanism cannot be restored without pcntl sigterm
…b.com/haristku/plugin-QueuedTracking into feature/enhance_monitor_and_processor
@AltamashShaikh @snake14 , have you ever tried the monitor command in a Windows environment? |
@haristku Thank you for all of your effort. I think that the PR looks ready to merge. Sadly, I don't think we currently have a Windows environment to test with. @AltamashShaikh Do you think that we're alright to merge anyway? |
@snake14 We can merge this and address the concern for windows if any |
thanks for creating matomo and this plugin in the first place. 👍 btw, i forgot to remove these 2 lines, my intention is to clear the screen, but it seems unnecessary, you can remove them.✌️ |
and 1 more update, change this line to this: $diffSumInQueue = $diffSumInQueue < 0 ? "<fg=red;options=bold>" . number_format(abs($diffRps)) . "</>" : "<fg=green;options=bold>" . number_format($diffRps) . "</>"; ✌️ |
@haristku All done and released v5.1.0 of the plugin. |
ty sir... 🫡 |
Description:
breaking down the previous PR to specific part