Skip to content

RFE: wtmpdb last: session duration precision => seconds #44

@jelmd

Description

@jelmd

Since the login and logout times are stored with a precision of microseconds, and remote usage (short-duration sessions) is becoming more and more common, the last command output should be made more user-friendly by increasing the duration precision from minutes to seconds. For example, before:

foobar pts/8        123.45.67.89     Wed Oct 29 10:38 - 10:39  (00:00)

and after:

foobar pts/8        123.45.67.89     Wed Oct 29 10:38 - 10:39  (00:00:55)

If backward compatibility is a concern, it could be arranged that when the tool is invoked as last, it uses the old method (precision in minutes), otherwise it uses the improved method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions