Mercurial > hg > Database > Alice
changeset 513:6a9886c13f45 dispose
refactor
author | sugi |
---|---|
date | Sat, 10 Jan 2015 18:19:35 +0900 |
parents | 84614ab9b758 |
children | 6732d03d0174 |
files | src/main/java/alice/test/codesegment/local/bitonicsort/SetTask.java src/main/java/alice/test/codesegment/local/bitonicsort/ShowData.java |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/test/codesegment/local/bitonicsort/SetTask.java Fri Jan 09 16:34:15 2015 +0900 +++ b/src/main/java/alice/test/codesegment/local/bitonicsort/SetTask.java Sat Jan 10 18:19:35 2015 +0900 @@ -38,10 +38,8 @@ new SortPhase(SetInfo.range[i],SetInfo.array[i*2],SetInfo.array[i*2+1],0,SetInfo.count[i]); } - new ShowData(i*2, sort_count); - } - + new ShowData(sort_count, sort_count); }
--- a/src/main/java/alice/test/codesegment/local/bitonicsort/ShowData.java Fri Jan 09 16:34:15 2015 +0900 +++ b/src/main/java/alice/test/codesegment/local/bitonicsort/ShowData.java Sat Jan 10 18:19:35 2015 +0900 @@ -11,7 +11,7 @@ public ShowData(int cnt, int index) { info = new Receiver[cnt]; for (int i= 0;i < cnt; i++) - info[i] = ids.create(CommandType.PEEK); + info[i] = ids.create(CommandType.TAKE); for (int i= 0;i < cnt; i++) info[i].setKey(SetInfo.array[i],index);