Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix a compiler error seen on Flag2 job of jenkins
[simgrid.git] / examples / platforms / syscoord / generate_peer_platform.pl
index 41be2505c7977dcaf56e7ee5edeaf21599820f5a..d5eccd18663dd35da3e8660b7dc586de1dff5936 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env perl
 
-# Copyright (c) 2011-2021. The SimGrid Team.
+# Copyright (c) 2011-2023. The SimGrid Team.
 # All rights reserved.
 
 # This program is free software; you can redistribute it and/or modify it
@@ -24,7 +24,7 @@ while(defined($line=<INPUT>))
 {
     next if ($line =~ /^#/);
     # 278 7.2 -9.4 h 2.3
-    if($line =~ /^([^ ]*) ([^ ]*) ([^ ]*) h ([^ ]*) *$/) {
+    if($line =~ /^(\S*) (\S*) (\S*) h (\S*) *$/) {
        print "\t\t<peer id=\"peer-$1\" coordinates=\"$2 $3 $4\" speed=\"730Mf\" bw_in=\"13.38MBps\" bw_out=\"1.024MBps\"/>\n";
        next;
     }