Mercurial > hg > Members > sugi > javafx
changeset 30:7306b4ea110e
bug fixed
author | sugi |
---|---|
date | Tue, 05 Nov 2013 14:19:21 +0900 |
parents | fe96dd350d9d |
children | 5598fa745a51 |
files | src/alice/topology/manager/keeparive/PingScheduler.java src/alice/topology/manager/keeparive/SchedulerViewer.java |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/topology/manager/keeparive/PingScheduler.java Tue Nov 05 14:02:40 2013 +0900 +++ b/src/alice/topology/manager/keeparive/PingScheduler.java Tue Nov 05 14:19:21 2013 +0900 @@ -37,6 +37,10 @@ for (int cnt = 0 ;cnt < list.size(); cnt++){ TaskInfo task = list.get(cnt); if (name.equals(task.getName())){ + if (cnt+1 < list.size()){ + TaskInfo tasknext = list.get(cnt+1); + tasknext.setTime(task.getTime()); + } list.remove(cnt); task.setTime(INTERVAL); addTask(task); @@ -95,6 +99,7 @@ this.wait(nowTask.getTime()); if (postponeFlag){ long remainingTime = nowTask.getTime() - (System.currentTimeMillis() - time); + totalTime += (System.currentTimeMillis() - time); nowTask.setTime(remainingTime); list.add(0, nowTask); postponeFlag = false;
--- a/src/alice/topology/manager/keeparive/SchedulerViewer.java Tue Nov 05 14:02:40 2013 +0900 +++ b/src/alice/topology/manager/keeparive/SchedulerViewer.java Tue Nov 05 14:19:21 2013 +0900 @@ -56,7 +56,7 @@ } protected LineChart<Number, Number> createChart() { - xAxis = new NumberAxis(0,200,10); + xAxis = new NumberAxis(0,100,5); final NumberAxis yAxis = new NumberAxis(0,100,10); final LineChart<Number,Number> lc = new LineChart<Number,Number>(xAxis,yAxis); // setup chart