Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add tag config and path property to be more generic.
authornavarro <navarro@caraja.(none)>
Thu, 22 Mar 2012 10:04:27 +0000 (11:04 +0100)
committernavarro <navarro@caraja.(none)>
Thu, 22 Mar 2012 10:04:27 +0000 (11:04 +0100)
examples/platforms/storage.xml
src/surf/surf_routing.c

index 97f05fa..41c2bb6 100644 (file)
@@ -2,9 +2,14 @@
 <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
 
 <platform version="3">
+
+<config>
+       <prop id="path" value="../examples/platforms/"/>
+</config>
+
        <AS id="AS0" routing="Full">
 
-               <storage_type id="samsung" model="RAID5" content="../examples/platforms/storage_content.txt">
+               <storage_type id="samsung" model="RAID5" content="storage_content.txt">
                        <prop id="Bwrite" value="30" />
                        <prop id="Bread" value="80" />
                </storage_type>
index ac8f058..d3bbf03 100644 (file)
@@ -813,7 +813,7 @@ static xbt_dict_t parse_storage_content(const char *filename)
       xbt_dict_set(parse_content,path,content,NULL);
     } else {
       xbt_die("Be sure of passing a good format for content file.\n");
-      // You can generate tjis kind of file with command line:
+      // You can generate this kind of file with command line:
       // find /path/you/want -type f -exec ls -l {} \; 2>/dev/null > ./content.txt
     }
   }