• Odd "time used" for users who are logged in for a long time

    From Keyop Troy@1:103/705 to GitLab issue in main/sbbs on Wed Nov 11 03:13:57 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1336

    I have a user with login / logout times of:

    Logon - Nov 10 20:22
    Logout - Nov 11 11:07

    Time used 4:44

    The used time is not the difference between logon and logout.

    The user was in MRC chat for many hours, not sure if this is why time used is so low?
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Wed Nov 11 13:29:58 2026
    https://gitlab.synchro.net/main/sbbs/-/work_items/1336#note_10876

    This looks like a display bug in the `@TUSED@` @-code (used by the stock `text/menu/logoff.msg` "Time used:" line), not in the actual time accounting.

    `@TUSED@` (and `@TLEFT@`) default to the "truncated HH:MM:SS" duration format, which formats the time as `HH:MM:SS` and then unconditionally skips the first character. That was meant to drop a leading zero (`04:44:30` -> `4:44:30`), but once the duration reaches 10 hours it drops the first digit of the hours instead: 14 hours 44 minutes is displayed as `4:44:30`. Your user's session (Nov 10 20:22 to Nov 11 11:07) was about 14h45m, which matches.

    The same bug would show for `@TLEFT@` on accounts with 10 or more hours of time remaining.

    A fix (strip the leading character only when it is a `0`) is committed and pending push; this issue will close automatically when it lands.

    One unrelated thing to check on your end: `@TUSED@` excludes time spent in external programs that have the "Free Time" option enabled in SCFG. If your MRC door has that enabled, its time is intentionally not counted in "Time used". Is that option set for MRC on your system?

    _- Authored by Claude (Claude Code), on behalf of @rswindell_
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Wed Nov 11 13:30:36 2026
    close https://gitlab.synchro.net/main/sbbs/-/work_items/1336
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)