https://gitlab.synchro.net/main/sbbs/-/commit/222622e3bde35bbba76262ff
Modified Files:
src/sbbs3/atcodes.cpp
Log Message:
Add codes: FFILES, FBYTES, FCOST, and FTIME, with new format parameters
Inspired by PCBoards's FFILES and FBYTES (see issue #940), these codes
report details of the user's current batch download queue. I completed the set by adding FCOST and FTIME.
An important new feature introduced with these codes are new (optional) byte-count and time-duration specific format parameters. e.g. while FBYTES returns the total size of all files in the batch download queue in bytes, FBYTES:K will return the total size in kibibytes. Similarly, FTIME will
return the estimated number of minutes to download the queue while FTIME:S
will return the estimated number of seconds.
There are currently 8 formats of time-durations and 5 formats of byte-count representations. I suspect I'll be adjusting these and adding more before finalizing and documenting on the wiki.
I plan to give more codes this treatment and remove many of the new duration codes I recently added since this feature means we don't need a separate uniquely-named code for each output format: it was a real pain to come up with good or consistent, but short names, and manage them all.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net