summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-09 11:37:47 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-09 11:37:47 +0100
commita2a169affeb57a42e27dd4893da0bdb52542dae9 (patch)
tree5e74ba9f3930688bcb2979b2a6cbc01f15c20f38 /flowtop.c
parent753a1170b12ee207b12763f11f900546b1008cd0 (diff)
flowtop: Simplify toggling of help state
No need to use if/else, just toogle it like any other bool. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/flowtop.c b/flowtop.c
index 42f1a4b..41e80b7 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1257,11 +1257,7 @@ static void presenter(void)
show_active_only = !show_active_only;
break;
case '?':
- if (show_help)
- show_help = false;
- else
- show_help = true;
-
+ show_help = !show_help;
wclear(screen);
clear();
break;