To: High Spiritã.,: This is something about System Variables...,ã High Spirit said it to DOVE-Net.Synchronet_Baja on Wed Apr 09 2008 12:53 pmã--ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ-ÄÄÄÄ---ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ---ÄÄÄÄÄÄÄÄÄ--ÄÄÄÄÄÄÄÄã > I'm sure this has been asked before, but I'm at a loss... I'm probably blindã > and the answer is right in front of me.ãã > How do I do a math operation (ADD, SUB, DIV, MUL) to a system variable likeã > @STATS.LOGONS@?ãã > For example, divide STATS.LOGONS (total logons during history of system) byã > 7 to get the average calls per day... (just an example, not really the valueã > I'm looking for).ãããlook in sbbsdefs.inc for stuff you can work with in baja.ããfor example, a callers mod i had laying around:ãã!INCLUDE SBBSDEFS.INCã!INCLUDE FILE_IO.INCãINT FILEãint TãSTR SL CPS SEX ULBYTE DL UL DLBYTE DLTIME HANDLE LOCATION MODEM CONNECTION ãCID NODENUM LC_LOGONSããCOPY LC_LOGONS _USERON.LOGONSãCOPY NODENUM _NODE_NUMãCOPY HANDLE _USERON.ALIASãCOPY LOCATION _USERON.LOCATIONãCOPY MODEM _USERON.MODEMãCOPY CONNECTION _CONNECTIONãCOPY SL _USERON.LEVELãCOPY SEX _USERON.SEXãCOPY CPS _CUR_CPSãCOPY ULBYTE _LOGON_ULBãCOPY UL _LOGON_ULSãCOPY DL _LOGON_DLSãCOPY DLBYTE _LOGON_DLBãããFOPEN FILE O_WRONLY|O_CREAT|O_APPEND "%N..\\LCALLS\LCALLMID.ANS"ããTIME TãFTIME_STR STR "%H:%M" TãFPRINTF FILE " \r\n|05 (time) %-6.6s " TãFPRINTF FILE " |13 (node) %-2.2s" NODENUMãFPRINTF FILE " |13 (sl) %-2.2s" SLãFPRINTF FILE " |13 (handle) %-15.15s" HANDLEãFPRINTF FILE " |05 (location) %-25.25s" LOCATIONãFPRINTF FILE " |13 (modem) %-13.13s" MODEMããFCLOSE FILEãã|15 .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿ã|07-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-ã|07 `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙã|08øùú.[|04Edge of oblivion bbs |12eob-bbs.com|08].úùø|15ããã--- Synchronet 3.14a-Win32 NewsLink 1.85ã * eob - Racine, WisconSIN -
telnet://eob-bbs.comã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã