Mercurial > hg > Applications > TreeVNC
changeset 244:8cc07511b1d5
small fix checkDelay
author | oc |
---|---|
date | Thu, 16 Oct 2014 11:03:28 +0900 |
parents | 0ed7719c1800 |
children | 1819e9c5d0cd |
files | src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java Mon Oct 13 17:39:36 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java Thu Oct 16 11:03:28 2014 +0900 @@ -26,10 +26,10 @@ public void run() { for (;;) { - long timeout = 50000 / 8; + long sendTime = 5000; // send check delay timing (5 sec) try { synchronized (this) { - wait(timeout); + wait(sendTime); sendCheckDelay(); } } catch (InterruptedException e) {
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Mon Oct 13 17:39:36 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Thu Oct 16 11:03:28 2014 +0900 @@ -182,8 +182,8 @@ String address = new String(byteAddress, "UTF-8"); int nodeNum = getNodeNum(port, address); Long delay = System.currentTimeMillis() - time; - double db = (double) delay / 2; - System.out.println("nodeNum" + nodeNum + ", delay = " + db); + double halfDelay = (double) delay / 2; + System.out.println("nodeNum" + nodeNum + ", port = " + port + ", address = " + address + ", delay = " + halfDelay); // checkNodeNum(); // readSendData(check);