X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftop.c;h=5552895aab76754e1cb36dc9da15a69f1cdcb23e;hb=e29e0fee8812851473bcf24324a15cbf3cc854a0;hp=f14395e23872a926eeee0da656cb5eebb7ceaae8;hpb=a57db1dfe0736fd902a45ed5f695630faf3f0e1e;p=tinc diff --git a/src/top.c b/src/top.c index f14395e2..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);