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

Update z-push-top.php #10

Conversation

liverpoolfc-fan
Copy link
Contributor

The max value for PIDs on 64-bit linux is 2^22 (approx 4 million) so 7 characters are needed to display the column reliably.

Released under the GNU Affero General Public License (AGPL), version 3

What does this implement/fix? Explain your changes.

On a Rocky Linux 9 server, z-push-top.php is currently displaying PIDs as "724.." - this is not useful for isolating individual running syncs. As the max PID value on 64-bit linux systems can be 2^22 (approx 4 million) the PID column should be widened to display 7 chars.
...

Does this close any currently open issues?

No
...

Any relevant logs, error output, etc?

Before:

PID   IP
724.. 192.168.120.123

After:

PID     IP
724103  192.168.120.123 

...

Where has this been tested?

Server (please complete the following information):

  • OS: Rocky Linux 9

  • PHP Version: 8.1.14

  • and Version: [2.7.0]

  • OS: Rocky Linux 8

  • PHP Version: 7.4.33

  • and Version: [2.6.4]

Smartphone (please complete the following information):

  • Device: Not applicable

The max value for PIDs on 64-bit linux is 2^22 (approx 4 million) so 7 characters are needed to display the column reliably.

Released under the GNU Affero General Public License (AGPL), version 3
@matidau matidau self-requested a review May 31, 2023 05:47
Copy link
Collaborator

@matidau matidau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working well

@matidau matidau merged commit cadbfa0 into Z-Hub:develop May 31, 2023
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.

2 participants