Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove useless length modifier 'l' in %l[efg] for printf.
[simgrid.git] / examples / msg / cloud / bound.c
index 2d4a6b6..ee5fc49 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) 2007-2013. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -53,9 +54,9 @@ static void launch_worker(msg_host_t host, const char *pr_name, double computati
 {
   char **argv = xbt_new(char *, 5);
   argv[0] = xbt_strdup(pr_name);
-  argv[1] = bprintf("%lf", computation_amount);
+  argv[1] = bprintf("%f", computation_amount);
   argv[2] = bprintf("%d", use_bound);
-  argv[3] = bprintf("%lf", bound);
+  argv[3] = bprintf("%f", bound);
   argv[4] = NULL;
 
   MSG_process_create_with_arguments(pr_name, worker_main, NULL, host, 4, argv);