From: <mar...@us...> - 2008-04-28 06:23:55
|
Revision: 171 http://gridsim.svn.sourceforge.net/gridsim/?rev=171&view=rev Author: marcos_dias Date: 2008-04-27 23:23:28 -0700 (Sun, 27 Apr 2008) Log Message: ----------- Bug fix, a job would not start if the reservation was made for the exact runtime estimate of the job. Modified Paths: -------------- branches/gridsim4.0-branch3/source/gridsim/turbo/ARCBMultiplePartitions.java branches/gridsim4.0-branch3/source/gridsim/turbo/AREBMultiplePartitions.java branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java Modified: branches/gridsim4.0-branch3/source/gridsim/turbo/ARCBMultiplePartitions.java =================================================================== --- branches/gridsim4.0-branch3/source/gridsim/turbo/ARCBMultiplePartitions.java 2008-04-16 10:39:27 UTC (rev 170) +++ branches/gridsim4.0-branch3/source/gridsim/turbo/ARCBMultiplePartitions.java 2008-04-28 06:23:28 UTC (rev 171) @@ -220,7 +220,7 @@ } // check whether the gridlet is expected to run for longer than // the time previously reserved - else if (executionTime >= sRes.getDurationTime()) { + else if (executionTime > sRes.getDurationTime()) { String userName = GridSim.getEntityName( gridlet.getUserID() ); System.out.println(super.get_name() + ".gridletSubmit(): " + " Gridlet #" + gridlet.getGridletID() + " from " + Modified: branches/gridsim4.0-branch3/source/gridsim/turbo/AREBMultiplePartitions.java =================================================================== --- branches/gridsim4.0-branch3/source/gridsim/turbo/AREBMultiplePartitions.java 2008-04-16 10:39:27 UTC (rev 170) +++ branches/gridsim4.0-branch3/source/gridsim/turbo/AREBMultiplePartitions.java 2008-04-28 06:23:28 UTC (rev 171) @@ -228,7 +228,7 @@ } // check whether the gridlet is expected to run for longer than // the time previously reserved - else if (executionTime >= sRes.getDurationTime()) { + else if (executionTime > sRes.getDurationTime()) { String userName = GridSim.getEntityName( gridlet.getUserID() ); System.out.println(super.get_name() + ".gridletSubmit(): " + " Gridlet #" + gridlet.getGridletID() + " from " + Modified: branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java =================================================================== --- branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java 2008-04-16 10:39:27 UTC (rev 170) +++ branches/gridsim4.0-branch3/source/gridsim/turbo/ARParallelSpaceShared.java 2008-04-28 06:23:28 UTC (rev 171) @@ -715,13 +715,13 @@ } // check whether the gridlet is expected to run for longer than // the time previously reserved - else if (executionTime >= sRes.getDurationTime()) { + else if (executionTime > sRes.getDurationTime()) { String userName = GridSim.getEntityName( gridlet.getUserID() ); System.out.println(super.get_name() + ".gridletSubmit(): " + " Gridlet #" + gridlet.getGridletID() + " from " + userName + " cannot be accepted because the reservation #" + - sRes.getID() + " is for " + sRes.getDurationTime() + - " while the gridlet is expected to run for " + + sRes.getID() + " is for " + sRes.getDurationTime() + " seconds," + + " whereas the gridlet is expected to run for " + executionTime + " seconds."); success = false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |