From: Arnaud Giersch Date: Tue, 15 Mar 2011 14:06:31 +0000 (+0100) Subject: Use two empty lines to separate data sets. X-Git-Tag: v0.1~80 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/e846a9dbc8ec5e9f5e05b2cf2c489e3cb2921eb7?ds=inline Use two empty lines to separate data sets. This is required by gnuplot. Also add some exemples in README file. --- diff --git a/README b/README index b0c0f36..694f795 100644 --- a/README +++ b/README @@ -92,9 +92,14 @@ Le script extract.pl permet d'extraire les données à partir des traces de simulation et de le présenter sous un format acceptable par gnuplot ou par graph (plotutils). -Exemple: +Exemples: ./loba platform.xml 2>&1 | ./extract.pl | graph -CTX + ./loba platform.xml 2>&1 | ./extract.pl | graph -CTX -y 0 250 + + ./loba platform.xml 2>&1 | ./extract.pl \ + | gnuplot -p -e 'plot "-" using 1:2:(column(-2)) with lines lc variable' + Communications ============== diff --git a/extract.pl b/extract.pl index a174a9e..c3414ee 100755 --- a/extract.pl +++ b/extract.pl @@ -45,5 +45,5 @@ foreach my $host (sort(keys %alldata)) { foreach my $data (@{$datalist}) { print "$data->{time} $data->{load}\n"; } - print "\n" + print "\n\n" }