From e846a9dbc8ec5e9f5e05b2cf2c489e3cb2921eb7 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 15 Mar 2011 15:06:31 +0100 Subject: [PATCH 1/1] Use two empty lines to separate data sets. This is required by gnuplot. Also add some exemples in README file. --- README | 7 ++++++- extract.pl | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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" } -- 2.39.5