Files
nethogs/refresh.cpp
Arnout Engelen be624683f0 Initial import.
2004-06-29 13:31:04 +00:00

18 lines
287 B
C++

#include <iostream>
#include <signal.h>
#include <unistd.h>
#include "nethogs.h"
extern bool needrefresh;
extern unsigned refreshdelay;
void alarm_cb (int i)
{
needrefresh = true;
//cout << "Setting needrefresh\n";
signal (SIGALRM, &alarm_cb);
alarm(refreshdelay);
}