X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftop.c;h=5552895aab76754e1cb36dc9da15a69f1cdcb23e;hb=90f1cba1fd9e748ec4b8274511d5a36ec1a24d9d;hp=5a9edb0828a9e3d982fa01780fb96d6e72cbc601;hpb=660f530a6ff733f96f81eefa69b38e2ea685f890;p=tinc diff --git a/src/top.c b/src/top.c index 5a9edb08..5552895a 100644 --- a/src/top.c +++ b/src/top.c @@ -59,7 +59,6 @@ static bool cumulative = false; 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; @@ -247,6 +246,7 @@ static void redraw(void) { void top(int fd) { initscr(); timeout(delay); + bool running = true; while(running) { update(fd); @@ -305,7 +305,6 @@ void top(int fd) { scale = 1e-9; break; case 'q': - case 27: case KEY_BREAK: running = false; break;