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

last: not all hostnames are shown in the last column with --hostlast #212

Open
cakebaker opened this issue Feb 5, 2025 · 0 comments
Open
Labels
bug Something isn't working last

Comments

@cakebaker
Copy link
Contributor

When using -a/--hostlast, not all hostnames are shown in the last column (see the last two lines):

$ cargo run last -a -n 10
dho      pts/4        Wed Feb  5 13:34   still logged in :1
dho      pts/3        Wed Feb  5 13:34   still logged in :1
dho      pts/5        Wed Feb  5 13:34   still logged in :1
dho      pts/1        Wed Feb  5 13:34   still logged in :1
dho      pts/2        Wed Feb  5 13:34   still logged in :1
dho      pts/0        Wed Feb  5 13:34   still logged in :1
dho      tty1         Wed Feb  5 13:34   still logged in
reboot   system boot  Wed Feb  5 13:33   still running 6.13.1-arch1-1
dho      pts/2        Wed Feb  5 06:27 - down   :1 (05:28)
dho      pts/5        Wed Feb  5 06:27 - down   :1 (05:28)

With last from util-linux:

$ last -a -n 10
dho      pts/4        Wed Feb  5 13:34   still logged in    :1
dho      pts/3        Wed Feb  5 13:34   still logged in    :1
dho      pts/5        Wed Feb  5 13:34   still logged in    :1
dho      pts/1        Wed Feb  5 13:34   still logged in    :1
dho      pts/2        Wed Feb  5 13:34   still logged in    :1
dho      pts/0        Wed Feb  5 13:34   still logged in    :1
dho      tty1         Wed Feb  5 13:34   still logged in
reboot   system boot  Wed Feb  5 13:33   still running      6.13.1-arch1-1
dho      pts/2        Wed Feb  5 06:27 - down   (05:28)     :1
dho      pts/5        Wed Feb  5 06:27 - down   (05:28)     :1
@cakebaker cakebaker added bug Something isn't working last labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working last
Projects
None yet
Development

No branches or pull requests

1 participant