Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove unused swag hookups.
[simgrid.git] / examples / msg / io-remote / io-remote.c
index aaece80..626bd39 100644 (file)
@@ -4,7 +4,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "simgrid/msg.h"
-#include "simgrid/plugins/file_system.h"
+#include <simgrid/plugins/file_system.h>
 
 #define INMEGA (1024*1024)
 
@@ -64,13 +64,15 @@ int main(int argc, char **argv)
 
   xbt_dynar_t storages = MSG_storages_as_dynar();
   xbt_dynar_foreach(storages, cur, st){
-    XBT_INFO("Init: %llu MiB used on '%s'", MSG_storage_get_used_size(st)/INMEGA, MSG_storage_get_name(st));
+    XBT_INFO("Init: %llu/%llu MiB used/free on '%s'", MSG_storage_get_used_size(st) / INMEGA,
+             MSG_storage_get_free_size(st) / INMEGA, MSG_storage_get_name(st));
   }
 
   int res = MSG_main();
 
   xbt_dynar_foreach(storages, cur, st){
-    XBT_INFO("Init: %llu MiB used on '%s'", MSG_storage_get_used_size(st)/INMEGA, MSG_storage_get_name(st));
+    XBT_INFO("End: %llu/%llu MiB used/free on '%s'", MSG_storage_get_used_size(st) / INMEGA,
+             MSG_storage_get_free_size(st) / INMEGA, MSG_storage_get_name(st));
   }
   xbt_dynar_free(&storages);