Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 252:eee9a8f53dbc
change check delay log
author | oc |
---|---|
date | Tue, 11 Nov 2014 10:19:57 +0900 |
parents | 4a89a92becee |
children | 4049f353f753 |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Nov 11 05:30:56 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Nov 11 10:19:57 2014 +0900 @@ -226,8 +226,9 @@ FramebufferUpdateRectangle rect = new FramebufferUpdateRectangle(); rect.fill(reader); + long time = System.currentTimeMillis(); if(rfb.isTreeManager()) - System.out.println("width * height : " + rect.width * rect.height); + System.out.println(time + " : size : " + rect.width * rect.height); Decoder decoder = decoders.getDecoderByType(rect.getEncodingType()); logger.finest(rect.toString() + (0 == numberOfRectangles ? "\n---" : ""));
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java Tue Nov 11 05:30:56 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java Tue Nov 11 10:19:57 2014 +0900 @@ -22,11 +22,12 @@ checkdelay.add(new CheckDelay(0, 0, 0, 0, time, EncodingType.CHECK_DELAY).getMessage()); rfb.addSerialNumber(checkdelay); rfb.multicastqueue.put(checkdelay); + System.out.println(time + " : send checkDelay"); } public void run() { for (;;) { - long sendTime = 5000; // send check delay timing (5 sec) + long sendTime = 10000; // send check delay timing (10 sec) try { synchronized (this) { wait(sendTime);
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Nov 11 05:30:56 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Nov 11 10:19:57 2014 +0900 @@ -186,7 +186,7 @@ int nodeNum = getNodeNum(port, address); Long delay = System.currentTimeMillis() - time; double halfDelay = (double) delay / 2; - System.out.println("nodeNum" + nodeNum + ", port = " + port + ", address = " + address + ", delay = " + halfDelay); + System.out.println(System.currentTimeMillis() + " : receive checkDelay : nodeNum" + nodeNum + ", port : " + port + ", address : " + address + ", delay : " + halfDelay); // checkNodeNum(); // readSendData(check);