[Netadm-devel] gwc/include global.h,1.8,1.9
Status: Beta
Brought to you by:
linuxpark
|
From: linuxpark <lin...@us...> - 2006-05-08 17:59:53
|
Update of /cvsroot/netadm/gwc/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17018/include Modified Files: global.h Log Message: MOD: make enable logr ratelimit. (not not complete) Index: global.h =================================================================== RCS file: /cvsroot/netadm/gwc/include/global.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** global.h 6 May 2006 17:33:33 -0000 1.8 --- global.h 6 May 2006 23:43:23 -0000 1.9 *************** *** 80,85 **** --- 80,87 ---- /* sysklog.ko and gwcklogd reference these macro definition below --LP */ #define MAXLOGLINE MAXBUF + #define MINSYSIDX -1 #define GWC_PF_IDX 0 #define GWC_KSYS_IDX 1 + /* TODO: more class, if needed */ #define MAXSYSIDX (GWC_KSYS_IDX + 1) #define DEV_DIR "/dev" *************** *** 96,98 **** --- 98,104 ---- #define GWC_KLOGDPROC_TIMEOUT 2 + /* GWCPK_BURST ( 25 msg ) / GWCPK_JIFFIES( 5 sec ) = 5 (msg /1sec) */ + #define GWCPK_JIFFIES 5 /* 1 sec = 1 * HZ , kernel define 5 */ + #define GWCPK_BURST 10 /* 10 message */ + #endif /* __SYS_GLOBAL_H */ |