projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90d8073
)
src/oping.c: Switch graphs when pressing "g".
author
Florian Forster
<ff@octo.it>
Wed, 19 Nov 2014 17:08:14 +0000
(18:08 +0100)
committer
Florian Forster
<ff@octo.it>
Wed, 19 Nov 2014 17:08:14 +0000
(18:08 +0100)
src/oping.c
patch
|
blob
|
history
diff --git
a/src/oping.c
b/src/oping.c
index
cce4379
..
79afb5f
100644
(file)
--- a/
src/oping.c
+++ b/
src/oping.c
@@
-1268,6
+1268,13
@@
static int check_resize (pingobj_t *ping) /* {{{ */
break;
else if (key == KEY_RESIZE)
need_resize = 1;
+ else if (key == 'g')
+ {
+ if (opt_show_graph == 3)
+ opt_show_graph = 1;
+ else if (opt_show_graph > 0)
+ opt_show_graph++;
+ }
}
if (need_resize)