mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 08:03:49 +00:00
Log any alarm we call more than 10,000 times a second (probably indicates a bug)
This commit is contained in:
parent
844afcff0e
commit
62cd8c7555
@ -168,8 +168,8 @@ int fd_showstats()
|
||||
while(stats!=NULL){
|
||||
/* If a function spends more than 1 second in any
|
||||
notionally 3 second period, then dob on it */
|
||||
if (stats->total_time>1000
|
||||
&&strcmp(stats->name,"Idle (in poll)"))
|
||||
if ((stats->total_time>1000 || stats->calls > 10000)
|
||||
&& strcmp(stats->name,"Idle (in poll)"))
|
||||
fd_showstat(&total,stats);
|
||||
stats = stats->_next;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user