Z-Hub / Z-Push

Home of Z-Push
https://z-push.org
GNU Affero General Public License v3.0
97 stars 47 forks source link

Update z-push-top.php #10

Closed liverpoolfc-fan closed 1 year ago

liverpoolfc-fan commented 1 year ago

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):

Smartphone (please complete the following information):