Open CP1832 opened 8 years ago
That shouldn't be too difficult.
I am wondering if it could even be done without modifying the c code since there is already a dcc binding. Since there is already a dcc binding, it might be possible to trigger through TCL. It's been too long since I used bindings to know that for sure, though. :)
If not, here are some pointers which might help to add purge stats to the c code as a new TCL command: All TCL commands are in the file tclstats.c. You can copy the business logic from the dcc command which is located in dcccmds.c.
Hope that helps!
Hi Florian:
Would it be possible to add purgestats as a TCL command (as well as a DCC command) for future releases so as to be able to purge stats in a regular way using a TCL script?
Thanks in advance.