git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bounds check
[nikiroo-utils.git]
/
src
/
jexer
/
backend
/
TTYSessionInfo.java
diff --git
a/src/jexer/backend/TTYSessionInfo.java
b/src/jexer/backend/TTYSessionInfo.java
index 22d5314eb9ed819e36c0eca16d43a60fec561993..67b2e5c4b9f357e125cb4077ec1e38a0d76e49fc 100644
(file)
--- a/
src/jexer/backend/TTYSessionInfo.java
+++ b/
src/jexer/backend/TTYSessionInfo.java
@@
-183,8
+183,9
@@
public final class TTYSessionInfo implements SessionInfo {
lastQueryWindowTime = System.currentTimeMillis();
} else {
long nowTime = System.currentTimeMillis();
lastQueryWindowTime = System.currentTimeMillis();
} else {
long nowTime = System.currentTimeMillis();
- if (nowTime - lastQueryWindowTime < 3000) {
- // Don't re-spawn stty, it's been too soon.
+ if (nowTime - lastQueryWindowTime < 1000) {
+ // Don't re-spawn stty if it hasn't been a full second since
+ // the last time.
return;
}
}
return;
}
}