• src/sbbs3/atcodes.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Mon Jan 5 00:49:23 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e25c2129ac0ac8c4c8c9025f
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Fixes and additions with statistics and security related @-codes

    - The following codes wold return bad/truncated "hours" if the val was > 9hrs
    TPERC, TPERD (e.g. "4:00" instead of "24:00")
    - The following codes wold return bad/truncated "hours" if the val was > 99hrs
    TTODAY, TTOTAL, TBANKED (e.g. "10:00" instead of "250:00")

    New codes:
    - TMLAST (time used last call in [H]H:MM format)
    - HRLAST (estimated hours used last call, with 'h' suffix)
    - LASTTM (exact time used during last call, with 'm' suffix)
    - TMTODAY (exact total time used today, with 'm' suffix)
    - HRTODAY (estimated hours used today, with 'h' suffix)
    - HRPERD (estimated hours allowed per day, with 'h' suffix)
    - HRPERC (estimated hours allowed per call, with 'h' suffix)
    - TOTALHR (estimated total time used, in hours, with 'd' or 'h' suffix)
    - TOTALTM (exact total time used, verbose, with 'm' suffix)
    - EXTRAHR (extra time, in estimated hours with 'd' or 'h' suffix)
    - EXTRATM (extra time, verbose, with 'm' suffix)
    - TMBANK (banked time, verbose, with 'm' suffix)
    - HRBANK (banked time, estimated in hours, with 'm' suffix)
    - CDT (estimated number of credits, e.g. "4.0G")
    - CDTPERD (estimated free credits per day, e.g. "5.0G")
    - CDTUSED (estimated free credits used today, e.g. "1.0G")
    - CDTLEFT (estimated total credits available to user, e.g. "5.5G")
    - CDTFREE (estimated remaining free credits, e.g. "0.5G")

    Duration @-codes are expanded in a few variant formats:
    1 raw units (seconds or minutes) as a whole number (e.g. MEXTRA, TLAST)
    2 hours and minutes, zero-padded as "[H]HH:MM" (e.g. TEXTRA, TBANKED)
    3 hours and minutes, shortened as "[HHH:]MM" (e.g. TTODAY)
    4 estimated day and hours (e.g. TOTALHR="15.4d", EXTRAHR="2.5h")
    5 exact number of days, hours, and minutes (e.g. TOTALTM="15d 9h 37m")

    Byte/credit @-codes are expanded in a few variant formats:
    1 raw byte/credit numbers as a whole number (e.g. CREDITS, DLBYTES)
    2 kibibyte units as whole number (KTODAY) or fraction (FILEKB) with no suffix
    3 mebibyte units as whole number (FILESPACEM) or fraction (FILEMB), no suffix
    4 gibibyte units as whole number (FILESPACEG) or fraction (FILEGB), no suffix
    5 estimated size as fraction (e.g. BTODAY, DLB) with suffix

    While multiple formats are available for most values, not all formats are available for every value. The 'T' format modifier can be used to add
    thousands separators (commas) to the raw unit outputs (1).
    --- SBBSecho 3.34-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Jan 5 05:25:37 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/834f48490ad1214f657c423c
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Resolve GCC printf usage warning
    --- SBBSecho 3.34-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)