Fix alarm management
This commit is contained in:
parent
a612c24207
commit
7124084434
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ void sigalarm(int unusedg __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
printf("Recv: %10llu %0.1fMbits/s (%lu pps) (%5ld dropped)\n", recv_count, (bytes / 1024.0 / 1024.0 * 8), pps, dropped);
|
printf("Recv: %10llu %0.1fMbits/s (%lu pps) (%5ld dropped)\n", recv_count, (bytes / 1024.0 / 1024.0 * 8), pps, dropped);
|
||||||
pps = bytes = 0;
|
pps = bytes = 0;
|
||||||
|
signal(SIGALRM, sigalarm);
|
||||||
alarm(1);
|
alarm(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue