static list_t node_list;
static struct timeval now, prev, diff;
static int delay = 1000;
-static bool running = true;
static bool changed = true;
static const char *unit = "bytes";
static float scale = 1;
void top(int fd) {
initscr();
timeout(delay);
+ bool running = true;
while(running) {
update(fd);
scale = 1e-9;
break;
case 'q':
- case 27:
case KEY_BREAK:
running = false;
break;