diff options
author | James Booth <boothj5@gmail.com> | 2016-01-01 19:50:13 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-01 19:50:13 +0000 |
commit | f27cae68c507c6def2591ec43c130f92f485fbec (patch) | |
tree | ac028a3e6ab8a3090c32503706485b479a574665 /src/ui/console.c | |
parent | 94b0d2c6da7e36c29ee091ae6212d70e9a9294e4 (diff) | |
download | profani-tty-f27cae68c507c6def2591ec43c130f92f485fbec.tar.gz |
Added autoping timeout preference
Diffstat (limited to 'src/ui/console.c')
-rw-r--r-- | src/ui/console.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 14487b7c..315e933c 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1695,6 +1695,15 @@ cons_autoping_setting(void) } else { cons_show("Autoping interval (/autoping) : %d seconds", autoping_interval); } + + gint autoping_timeout = prefs_get_autoping_timeout(); + if (autoping_timeout == 0) { + cons_show("Autoping timeout (/autoping) : OFF"); + } else if (autoping_timeout == 1) { + cons_show("Autoping timeout (/autoping) : 1 second"); + } else { + cons_show("Autoping timeout (/autoping) : %d seconds", autoping_timeout); + } } void |