From e29e0fee8812851473bcf24324a15cbf3cc854a0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 3 Aug 2012 14:17:02 +0200 Subject: [PATCH] Make sure the top command can be used more than once in tincctl's shell. --- src/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/top.c b/src/top.c index f14395e..5552895 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); -- 2.25.1