X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97ceda0f19b52d3ba1833243a272dcfc57745bf1..6c1d1796e85c27087724ae7d7bde8317a134ef44:/tools/MSG_visualization/colorize.pl diff --git a/tools/MSG_visualization/colorize.pl b/tools/MSG_visualization/colorize.pl index 9fdd3df60d..f3c5e3ff16 100755 --- a/tools/MSG_visualization/colorize.pl +++ b/tools/MSG_visualization/colorize.pl @@ -1,4 +1,10 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +# Copyright (c) 2005, 2007, 2010, 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. $col_white = "\033[00m"; $col_black = "\033[30m"; @@ -18,7 +24,6 @@ $col_underline = "\033[04m"; $col_blink = "\033[05m"; # Customize colors here... -# $col_default = $col_ltgray; my (@coltab) = ( $col_green, $col_yellow, @@ -33,7 +38,6 @@ my (@coltab) = ( my %pid; # Get options -# while (($_ = $ARGV[0]) =~ /^-/) { shift; if (/-location/i) { @@ -75,7 +79,7 @@ sub print_line { print pidcolor($pid); if(defined($location)) { - printf "[%10s:%-10s %s ]",$host,$procname,$location; + printf "[%10s:%-10s] %s ",$host,$procname,$location; } else { printf "[%10s:%-10s]",$host,$procname; }