The .traffic command in DCC gives me the following output :
I wanted to publish the total traffic Stats on my website, but .tcl traffic returnedTraffic since last restart
==========================
IRC:
out: 118.46 KBytes (24.71 KBytes today)
in: 3.13 MBytes (878.98 KBytes today)
Partyline:
out: 129.76 KBytes (1.32 KBytes today)
in: 1.54 KBytes (31 Bytes today)
Misc:
out: 814.39 KBytes (224.16 KBytes today)
in: 18.58 MBytes (5.22 MBytes today)
---
Total:
out: 1.04 MBytes (250.38 KBytes today)
in: 21.71 MBytes (6.08 MBytes today)
It would be fine if somebody could write a little proc to split this output and maybe writeing the stats into a global variable, so it can be accesed from other tcl's too.Tcl: {irc 900072 3283327 25303 121302} {botnet 0 0 0 0} {partyline 22 1571 1009 132530} {transfer 0 0 0 0} {misc 5474545 19479271 229543 833934} {total 6374639 22764169 255855 1087766}