From: nathan Date: Fri, 8 Dec 2006 23:31:55 +0000 (+0000) Subject: align text output X-Git-Tag: v1_7_100~390 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=22e073b2465eb38a2fe6cb831237caaf94e351f1 align text output --- diff --git a/lustre-iokit/sgpdd-survey/plot-sgpdd.pl b/lustre-iokit/sgpdd-survey/plot-sgpdd.pl index 16cc994..0f7ad17 100755 --- a/lustre-iokit/sgpdd-survey/plot-sgpdd.pl +++ b/lustre-iokit/sgpdd-survey/plot-sgpdd.pl @@ -48,7 +48,7 @@ LABEL: while ( ) { $out{$line[7]}{$line[5]} = $line[9]; } } - print "rg$line[5] th$line[7] w$line[9] r$line[$rindex]\n"; + #print "rg$line[5] th$line[7] w$line[9] r$line[$rindex]\n"; if ($line[$rindex]) { if (!($line[$rindex+1] eq "failed")) { if ($line[5] <= 1 ) { @@ -76,7 +76,7 @@ for ($j = 1; $j <= $thread ; $j = $j + $j) { print DATAFILE " write$j read$j"; } for ( $i = 1; $i <= $region; $i = $i + $i ) { - print DATAFILE "\n$i"; + printf DATAFILE "\n%-4s", $i; for ($j = 1; $j <= $thread ; $j = $j + $j) { if ( $out{$i}{$j} ) { print DATAFILE " $out{$i}{$j}";