|
Message
From: cvs at opencores.org<cvs@o...>
Date: Sat Sep 23 02:15:44 CEST 2006
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/06/09 23:02:15 Modified: jop/java/tools/src/com/jopdesign/wcet WCETMethodBlock.java Log: correct rounding from getObjective() Revision Changes Path 1.6 jop/java/tools/src/com/jopdesign/wcet/WCETMethodBlock.java http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/wcet/WCETMethodBlock.java.diff?r1=1.5&r2=1.6 (In the diff below, changes in quantity of whitespace are not shown.) Index: WCETMethodBlock.java =================================================================== RCS file: /cvsroot/martin/jop/java/tools/src/com/jopdesign/wcet/WCETMethodBlock.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- WCETMethodBlock.java 26 Jun 2006 10:47:45 -0000 1.5 +++ WCETMethodBlock.java 23 Sep 2006 00:15:44 -0000 1.6 @@ -1131,7 +1131,7 @@ problem.setOutputfile(lpf+".solved.txt"); problem.printObjective(); problem.printSolution(1); - wcetlp = (int)problem.getObjective(); + wcetlp = (int)(problem.getObjective()+0.5); try { BufferedReader in = new BufferedReader(new FileReader(lpf+".solved.txt")); String str;
|