[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #5811] Fix negative statistical counter display
From: |
Frédéric Bernon |
Subject: |
[lwip-devel] [patch #5811] Fix negative statistical counter display |
Date: |
Thu, 22 Mar 2007 10:06:00 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Follow-up Comment #5, patch #5811 (project lwip):
I already got the problem, even if I don't use every day LWIP_STATS - and
never in production - with some counters (xmit & recv if I remember), which
can overflow very fast.
I suppose the remark if about adding LWIP_STATS_LARGE in opt.h (which is
"visible" tunning part)? If this is the case, perhaps we can put it in
stats.h, just after "#if LWIP_STATS" ?
About names, perhaps these are better :
#if LWIP_LARGE_STATS
#define STAT_COUNTER u32_t
#define STAT_COUNTER_F U32_F
#else
#define STAT_COUNTER u16_t
#define STAT_COUNTER_F U16_F
#endif
Good for you?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5811>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/