aboutsummaryrefslogtreecommitdiffstats
path: root/src/tty.c
diff options
context:
space:
mode:
authorjames <>2010-07-27 14:49:35 +0000
committerjames <>2010-07-27 14:49:35 +0000
commit789f759f4cea382053851669bb7076d9a990a2cd (patch)
tree26776194e6b4ce257e526876a2a0518844a9a258 /src/tty.c
parent6faf91bb7c43b69f7132f76bc520e60e8b8677c6 (diff)
downloadsympathy-789f759f4cea382053851669bb7076d9a990a2cd.tar.gz
sympathy-789f759f4cea382053851669bb7076d9a990a2cd.tar.bz2
sympathy-789f759f4cea382053851669bb7076d9a990a2cd.zip
add support for byte logging
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tty.c b/src/tty.c
index 86551d1..505e70c 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.27 2010/07/27 14:49:35 james
+ * add support for byte logging
+ *
* Revision 1.26 2008/03/10 11:49:33 james
* *** empty log message ***
*
@@ -493,7 +496,7 @@ tty_analyse (Context * c)
p->guessed_baud = -1;
} else {
- if (i > 0)
+ if (i > 0 && j > 0)
p->guessed_baud = i / j;
else
p->guessed_baud = 0;