Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix 32-bit storage tests
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 13 Jul 2017 07:33:53 +0000 (09:33 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 13 Jul 2017 07:33:53 +0000 (09:33 +0200)
The modification of the N11 storage model uses a rounding method so
that entire numbers of bytes are written at each action update. This
causes a slight difference of 30 nanoseconds in the total execution
time of the example. Assume that we can leave with that and just print
time up to the millisecond. Moreover this model is going to change
again soon.

examples/msg/io-file/io-file.c
examples/msg/io-file/io-file.tesh

index 4f7f079..c0ad633 100644 (file)
@@ -99,6 +99,6 @@ int main(int argc, char **argv)
   xbt_dynar_free(&hosts);
 
   int res = MSG_main();
-  XBT_INFO("Simulation time %g", MSG_get_clock());
+  XBT_INFO("Simulation time %.6f", MSG_get_clock());
   return res != MSG_OK;
 }
index c6915ff..e0483eb 100644 (file)
@@ -53,4 +53,4 @@ $ ${bindir:=.}/io-file ${srcdir:=.}/storage/storage.xml "--log=root.fmt:[%10.6r]
 > [  0.008326] (3:host@carl)   Have written 110000 in '/home/doc/simgrid/examples/platforms/g5k_cabinets.xml'. Size now is: 110000
 > [  0.008326] (3:host@carl)   Capacity of the storage element '/home/doc/simgrid/examples/platforms/g5k_cabinets.xml' is stored on: 37020686 / 536870912000
 > [  0.008326] (3:host@carl)   Close file '/home/doc/simgrid/examples/platforms/g5k_cabinets.xml'
-> [  0.008326] (0:maestro@) Simulation time 0.00832645
+> [  0.008326] (0:maestro@) Simulation time 0.008326