Revision: 41
http://gridsim.svn.sourceforge.net/gridsim/?rev=41&view=rev
Author: sulistio
Date: 2007-08-28 19:16:53 -0700 (Tue, 28 Aug 2007)
Log Message:
-----------
fix few bugs regarding to writing an event to a file.
Modified Paths:
--------------
branches/gridsim4.0-branch1/examples/ResFailureEx01/GridUserFailureEx01.java
Modified: branches/gridsim4.0-branch1/examples/ResFailureEx01/GridUserFailureEx01.java
===================================================================
--- branches/gridsim4.0-branch1/examples/ResFailureEx01/GridUserFailureEx01.java 2007-08-29 01:28:04 UTC (rev 40)
+++ branches/gridsim4.0-branch1/examples/ResFailureEx01/GridUserFailureEx01.java 2007-08-29 02:16:53 UTC (rev 41)
@@ -423,7 +423,7 @@
* They take into account the last submission of a gridlet
* (when the gridlet is successfully run)
*/
- private static void printGridletList(GridletList list, String name,
+ private void printGridletList(GridletList list, String name,
boolean detail, double gridletLatencyTime[])
{
int size = list.size();
@@ -552,10 +552,14 @@
* @param cost the processing cost of the gridlet
* @param cpu the cpu time
* @param clock Current time
- * */
- private static void writeFin(String user, int glID, String resName,
+ */
+ private void writeFin(String user, int glID, String resName,
double cost, double cpu, double clock)
{
+ if (trace_flag == false) {
+ return;
+ }
+
// Write into a results file
FileWriter fwriter = null;
try
@@ -603,6 +607,10 @@
private void write(String user, String event, int glID, String resName,
String status, double clock)
{
+ if (trace_flag == false) {
+ return;
+ }
+
// Write into a results file
FileWriter fwriter = null;
try
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|